DOM Manipulation

  • Arun K. Pande


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.


Background Color Current Element Selected Element Customer Support Radio Button 

Copyright information

© Arun K. Pande 2014

Authors and Affiliations

  • Arun K. Pande
    • 1
  1. 1.ILUnited States

Personalised recommendations