Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

add class to element javascript

element.classList.add('class');
element.classList.remove('class');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #class #element #javascript
ADD COMMENT
Topic
Name
2+3 =