Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript jQuery ToggleClass Not Stopping Re: jQuery ToggleClass Not Stopping

#72791
akurtula
Participant

hi

i think you need to add 2 class names. like this example from jquery documentation:

$(‘#foo’).toggleClass(className, addOrRemove)

so you need to add something like

$(this).toggleClass(‘large-circle’, ‘normalstate’);

and style the new class