Friday, July 28, 2017

How will you Set a CSS Property?

Set a CSS Property

To set a specified CSS property, use the following syntax:
css("propertyname","value");
The following example will set the background-color value for ALL matched elements:

Example

$("p").css("background-color", "yellow");