CustomClassList
Provides functionality for manipulating custom CSS classes. Learn more.
Guides
Additional information about this section
Functions
Perform actions on an object
- add( )
Adds custom CSS classes to an element's class list.
- contains( )
Indicates whether the element's class list contains a specified custom CSS class.
- remove( )
Removes custom CSS classes from an element's class list.
- replace( )
Replaces a custom CSS class of an element with a different custom CSS class.
- toggle( )
Toggles an element's custom CSS class.
- values( )
Gets an array of strings listing an element's custom CSS classes.