1$('#element').css('display', 'block'); /* Single style */
2$('#element').css({'display': 'block', 'background-color' : '#2ECC40'}); /* Multiple style */
1//Set one style attribute
2$('#element').css('display', 'block');
3//Set multiple style attributes
4$('#element').css({'display': 'block', 'background-color' : '#2ECC40'}); /* Multiple style *
1Syntax:
2$(selector).css(property-name:property-value);
3
4Example:
5$('.bodytext').css('color':'red');