jQuery Tutorials
jQuery Effects
jQuery HTML
jQuery Traversing
jQuery AJAX
jQuery Misc
The css()
method sets or returns one or more style element to selected elements.
To restore the value of a specified CSS feature, use the following syntax:
The following example will return the color background of the matching element FIRST:
To set the specified CSS feature, use the following syntax:
The following example will set the background color for ALL the same features:
To set multiple CSS features, use the following syntax:
The following example will set the background color and font size for ALL the same features: