Methods
-
<static> add(element, className)
-
Add a string to the class attribute.
Parameters:
Name Type Description element
object Reference to a DOM element. className
string CSS class name string. -
<static> get(element) → {string}
-
Get the class attribute.
Parameters:
Name Type Description element
object Reference to a DOM element. Returns:
A CSS class name.- Type
- string
-
<static> remove(element, className)
-
Remove a string from the class attribute .
Parameters:
Name Type Description element
object Reference to a DOM element. className
string CSS class name string. -
<static> set(element, className)
-
Set the class attribute of an element.
Parameters:
Name Type Description element
object Reference to a DOM element. className
string CSS class name string.