Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

addclass javascript

var someElement= document.getElementById("myElement");
    someElement.className += " newclass";//add "newclass" to element (space in front is important)
 
PREVIOUS NEXT
Tagged: #addclass #javascript
ADD COMMENT
Topic
Name
6+6 =