//by passing the object of css properties will work $("selector").css({"background-color": "green", "font-size": "14px"});