jQuery

DOM
Interaction

DOM Manipulating# Traversing


In this tutorial:


DOM Manipulation

Everything in a document is represented by a node in the DOM (Document Object Model). One of the benefits of jQuery is being able to change the DOM. DOM manipulation allows to:

There are several ways we can manipulate the DOM with jQuery. The main types are:

For the full list see DOM Manipulation.


DOM Traversing

Another way we can use jQuery with the DOM is through DOM traversal, or moving through the DOM. We have several different categories of traversal methods:

There are many methods. See jQuery documentation for details. In the following demos some of the methods are demonstrated.