Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

add class to element javascript

element.classList.add('class');
element.classList.remove('class');
 
PREVIOUS NEXT
Tagged: #add #class #element #javascript
ADD COMMENT
Topic
Name
4+3 =