O'Reilly logo

jQuery Essentials by Troy Miles

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Manipulating the DOM

In the previous chapter, we learned how to use jQuery's selectors to find elements that we are looking for in the DOM. In this chapter, we will use this knowledge to first find elements and then modify them. We will learn the different methods that jQuery provides in order to help make our websites both beautiful and dynamic.

jQuery has over three dozen methods that manipulate the DOM in some way, but don't let that number scare you. All of the methods are readily broken down into just four different categories: dimensions and positions, classes and styles, attributes and properties, and content. Like most things in jQuery, once you dive in, you will quickly see the pattern of how the different groups of methods ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required