How to integrate a html bootstrap code into JavaScript code?
I wrote an html web site. There is a button created with bootstrap. I want to change the design of the button and the label text on it, depending on a boolean variable.
Here are the two types of buttons:
Open
Close
How can I integrate this html buttons in this JavaScript code?: