CHAPTER 3

image

Traversing DOM with jQuery

Having arranged the setup and acquired hands-on knowledge about some of the intricacies of jQuery, can we now ask you to put on your work wear, please? In this chapter, we promise that you will get your clothes dirty with some real-world action sequences. The fortress for you to scale is the DOM (Document Object Model). As you saw in Chapter 2 (refer to Figure 2-1), DOM is an m-ary tree. The best way to reach out to any node is to traverse the nodes and locate the desired node element. In this chapter, you will observe and, therefore, learn how jQuery helps in DOM traversal. By the end of the chapter, you ...

Get Practical jQuery now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.