jQuery 1.4 Reference Guide
上QQ阅读APP看书,第一时间看更新

Chapter 4. DOM Manipulation Methods

All of the methods in this chapter manipulate the DOM in some manner. A few of them simply change one of the attributes of an element, while others set an element's style properties. Still others modify entire elements (or groups of elements) themselves—inserting, copying, removing, and so on. All of these methods are referred to as setters, as they change the values of properties.

A few of these methods such as .attr(), .html(), and .val() also act as getters, retrieving information from DOM elements for later use.