CHAPTER 3

image

Traversing the DOM

You’ve seen how jQuery works and how animated boxes fade in and out. Now it’s time to take a more methodical look at the library and explore everything it can do. I won’t cover every method jQuery has to offer because a lot of methods do very similar things. There are also methods that do the exact opposite of each other. In the last chapter, you looked at fadeOut(), and briefly at fadeIn() because it was obvious what it would do, having met fadeOut(). There is a similar situation with a lot of jQuery methods.

This chapter won’t simply be a documentation of all jQuery’s traversal methods, however. Efficiency is a ...

Get Beginning jQuery 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.