1$('#element').css('display', 'block'); /* Single style */
2$('#element').css({'display': 'block', 'background-color' : '#2ECC40'}); /* Multiple style */
1//create an object and add styles
2const styles= {
3 backgroundColor: "crimson",
4 fontWeight: "bold",
5 border: "2px solid lime",
6};
7
8$("selector").css(styles);