3 ms·
I like these, but how do you get the "value"? Im not a javascript guru, but is there an attribute or value I need to check?
by S_A_P 14y ago
I like these, but how do you get the "value"? Im not a javascript guru, but is there an attribute or value I need to check?
- wbobeirne 14y agoIt looks like the primary function of the button is to alter something on the page via the toggles function, but I guess you could check if it had the active class or not.
- simontabor 14y agoYou can either check the class of the .slide div or have it linked to a checkbox which will be checked or unchecked.
- S_A_P 14y agoAhh, that did it. I ended up checking for $('.slide').hasClass('active'); Thanks for this simon!