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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #addclass #javascript
ADD COMMENT
Topic
Name
2+2 =