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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2012 Adam Freeman
About this chapter
Cite this chapter
Freeman, A. (2012). Managing the Element Selection. In: Pro jQuery. Apress. https://doi.org/10.1007/978-1-4302-4096-9_6
Download citation
DOI: https://doi.org/10.1007/978-1-4302-4096-9_6
Publisher Name: Apress
Print ISBN: 978-1-4302-4095-2
Online ISBN: 978-1-4302-4096-9
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books