Getting and setting CSS information is accomplished via a set of dedicated jQuery functions.
In addition to setting and retrieving individual CSS properties, there are methods for easy changing of the classes assigned to the elements that work in a x-browser manner.
css()
: get or set a css propertyhasClass(className)
: determine if a page element has a particular classaddClass(className | function)
: add the given CSS class to the elements in the matched setremoveClass(className | function)
: remove the given class from the elements in the matched setThis is paragraph 1.
This is paragraph 2.
This is paragraph 3.
This is paragraph 4.
This is paragraph 5.