Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js change classlist

element.classList.remove("someClass");
element.classList.add("someOtherClass");
 
PREVIOUS NEXT
Tagged: #js #change #classlist
ADD COMMENT
Topic
Name
3+2 =