Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript div id add class

var d = document.getElementById("div1");
d.className += " otherclass";
 
PREVIOUS NEXT
Tagged: #javascript #div #id #add #class
ADD COMMENT
Topic
Name
5+4 =