jquery add more than one css property code example
Example 1: jquery css
$('#element').css('display', 'block'); /* Single style */
$('#element').css({'display': 'block', 'background-color' : '#2ECC40'}); /* Multiple style */
Example 2: set multiple attributes css javascript
document.getElementById("myElement").style.cssText = "display: block; position: absolute";