Comment on Show HN: Easily Customizable Toggle Buttons - jQuery PluginparentComments−wbobeirne14yIt 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.−simontaborOP14yYou can either check the class of the .slide div or have it linked to a checkbox which will be checked or unchecked.−S_A_P14yAhh, that did it. I ended up checking for $('.slide').hasClass('active');Thanks for this simon!
Comments
It 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.
You can either check the class of the .slide div or have it linked to a checkbox which will be checked or unchecked.
Ahh, that did it. I ended up checking for $('.slide').hasClass('active');
Thanks for this simon!