javascript style properties multiple code example
Example 1: setting multiple styles in javascript
document.getElementById("myElement").style.cssText = "display: block; position: absolute";
Example 2: set multiple attributes css javascript
document.getElementById("myElement").style.cssText = "display: block; position: absolute";