June 2009
Intermediate to advanced
240 pages
5h 19m
English
In this chapter, we’ll take a guided tour of jQuery’s features for working with the elements and attributes in a page—all designed to let you access and manipulate page elements easily.
For instance, jQuery lets you access elements to change their HTML and text, set and read element attributes, and add new elements to a page and remove others.
All these manipulations are possible with jQuery functions (they’re actually jQuery methods, but the distinction between functions and methods is sometimes blurred in jQuery, so we’ll refer to them as functions).
This chapter explores a range of jQuery functions that will help you work with elements.
For example, you can use the each( ) function ...