showing results for - "add style js without overwrite"
Zayne
17 May 2016
1// Bad
2element.setAttribute("style", "background-color: red;"); 
3// Good
4element.style.backgroundColor = "red";