CHAPTER 6
DOM Manipulation
This chapter covers the jQuery methods used to manipulate the DOM. Chapters 3, 4, and 5 used jQuery selectors to get (or select) HTML elements based on their IDs, tag names, class names, types, attributes, and attribute’s values, and based on their relationship with other elements in the DOM tree. Once you have selected the desired elements, you can use a DOM-manipulation method to change their styles (CSS properties), properties, and attributes. You can also use DOM-manipulation methods to add new nodes and remove or replace existing nodes.
Sections in this chapter are organized in the following order:
- Manipulation ...
Get jQuery 2 Recipes: A Problem-Solution Approach now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.