Class Attribute
-
.addClass()
Attributes | Class Attribute | CSS
Adds the specified class(es) to each of the set of matched elements.
-
.hasClass()
Attributes | Class Attribute | CSS
Determine whether any of the matched elements are assigned the given class.
-
.removeClass()
Attributes | Class Attribute | CSS
Remove a single class, multiple classes, or all classes from each element in the set of matched elements.
-
.toggleClass()
Attributes | Class Attribute | CSS
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.