I have this toggle button that opens and closes.
It works well, but the text does not change back from “close” to “open” after you first open it and then close it.
I have this toggle button that opens and closes.
It works well, but the text does not change back from “close” to “open” after you first open it and then close it.
@AaronP - Hi, I updated my code, its all in the .js - I do not have text in my html.
What I try to achieve is that when the box is open and text shows “close”, that the text returns back to “open” when the box gets closed. It has to be all in .js.
also, you can try to do the following:
Open your project in a browser and cause “Insepct” (for Chrome), then go to the tab “Console” and you will see errors…