Advertisement

Pro jQuery pp 123-151 | Cite as

Managing the Element Selection

  • Adam Freeman

Abstract

Most of the time, you use jQuery in a pretty distinct two-step pattern. The first step is to select some elements, and the second step is to perform one or more operations on those elements. In this chapter, I focus on the first step, showing you how to take control of the jQuery selection and tailor it to your exact needs. I’ll also show you how to use jQuery to navigate the DOM. In both cases, you start with one selection and perform operations on it until it contains just the elements you require. As you’ll see, the correlation between the elements you start with and those you finish with can be as simple or as sophisticated as you like.

Keywords

Selected Element Context Object Element Selection 4ABLE Filter Argument Description 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Adam Freeman 2012

Authors and Affiliations

  • Adam Freeman

There are no affiliations available

Personalised recommendations