Abstract
This chapter covers jQuery methods for DOM traversing. Chapter 3 explained how to use jQuery selectors to get (or select) HTML elements based on their ID, tag name, class name, types, attributes, attribute values, and other criteria. Chapters 3 and 4 covered how a set of selected elements can be further fine-tuned using selector extensions, filtering methods, and expansion methods. DOM traversing methods can be used to select ancestors, descendants, and siblings of selected elements. Once you have the desired set of elements, you can access and manipulate their attributes (including values), properties, and styles.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2014 Arun K. Pande
About this chapter
Cite this chapter
Pande, A.K. (2014). DOM Traversing. In: jQuery 2 Recipes. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-6434-7_5
Download citation
DOI: https://doi.org/10.1007/978-1-4302-6434-7_5
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-6433-0
Online ISBN: 978-1-4302-6434-7
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books