Simple question here, I've got a button with JavaScript that changes from ON to OFF changing it's class
attribute.
So, the default value is OFF, and when you click it, swaps to ON. The problem is that everytime you navigate through the website's pages it always displays as OFF from default even if you selected ON previously.
Is it anyway with JavaScript or jQuery to remain the option selected from the previous page? I'm using class
attribute to change the element from ON to OFF
Thanks in advance for your help!