Class Attribute
-
jQuery .toggleClass( Function function(index, class, switch), Boolean switch )
Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the switch argument.
-
jQuery .removeClass( Function function(index, class) )
Remove a single class, multiple classes, or all classes from each element in the set of matched elements.
-
Boolean .hasClass( String className )
Determine whether any of the matched elements are assigned the given class.
-
jQuery .addClass( Function function(index, currentClass) )
Adds the specified class(es) to each of the set of matched elements.