[jQuery] .toggleClass()
[jQuery] .toggleClass()
Hello,
Is a .toggleClass( className ) method (or similar) available?
The behavior is/would be similar to .toggle() and quite simple: if the
className is present, remove it; if its absent, add it.
This method would make it easy to handle objects with two visual states
(e.g.: active/inactive).
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/