Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

add css class to html in js

document.getElementById("container").classList.add("main");
 
PREVIOUS NEXT
Tagged: #add #css #class #html #js
ADD COMMENT
Topic
Name
1+1 =