We can add css by jquery using css() method
To return the value of a specified css property
css("propertyname");
To set a css property
css({"propertyname":"value","propertyname":"value",...});
To set a background and the fontsize of p
$("p").css({"background-color": "yellow", "font-size": "200%"});
For single property we have the property name and the value and for the multiple property we use coma in between to add another property.
0 Comment(s)