Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to add multiple styles in javascript

Object.assign(yourelement.style,{fontsize:"12px",left:"200px",top:"100px"});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #multiple #styles #javascript
ADD COMMENT
Topic
Name
7+4 =