Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

add multiple class from array javascript


document.getElementById("MyElement").className += " MyClass";

Source by nullorempty.org #
 
PREVIOUS NEXT
Tagged: #add #multiple #class #array #javascript
ADD COMMENT
Topic
Name
8+3 =