toggleClass
Toggles a class for an HTML element.
- Use
Element.classList
andDOMTokenList.toggle()
to toggle the specified class for the element.
Toggles a class for an HTML element.
Element.classList
and DOMTokenList.toggle()
to toggle the specified class for the element.