Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

classlist


// use the classList API to remove and add classes
div.classList.remove("foo");
div.classList.add("anotherclass");
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #classlist
ADD COMMENT
Topic
Name
4+5 =