Also in: Attributes | Manipulation > Class Attribute | CSS .addClass() Adds the specified class(es) to each element in the set of matched elements.
Also in: Attributes | Manipulation > Class Attribute | CSS .removeClass() Remove a single class, multiple classes, or all classes from each element in the set of matched elements.
Also in: Attributes | Manipulation > Class Attribute | CSS .toggleClass() 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 state argument.