Abstract
How many times have you come across a project that uses jQuery simply to perform seemingly trivial element selection? How many times have you written $('#myElement') or $('.myElement')? If you have depended on jQuery for most (or all) of your projects, you may not be aware of the fact that you don’t need jQuery to select elements! This task is fairly straightforward with the help of the plain ‘ole boring web API. Much like jQuery, there are abundant examples (such as this book) that demonstrate how to properly harness the power of the browser to swiftly select any and all elements in your document. None of this is a well-kept secret, but the pervasiveness of jQuery has lead many to believe that the only sane way to find elements is with the help of the almighty dollar sign. Nothing could be further from the truth, and all of this will become clear as you read on.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
- 20.
- 21.
- 22.
- 23.
- 24.
- 25.
- 26.
- 27.
- 28.
- 29.
- 30.
- 31.
- 32.
- 33.
- 34.
- 35.
- 36.
- 37.
- 38.
- 39.
- 40.
- 41.
- 42.
- 43.
- 44.
- 45.
- 46.
- 47.
- 48.
- 49.
- 50.
- 51.
- 52.
- 53.
- 54.
- 55.
- 56.
- 57.
- 58.
- 59.
- 60.
- 61.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2016 Ray Nicholus
About this chapter
Cite this chapter
Nicholus, R. (2016). Finding HTML Elements. In: Beyond jQuery. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2235-5_4
Download citation
DOI: https://doi.org/10.1007/978-1-4842-2235-5_4
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-2234-8
Online ISBN: 978-1-4842-2235-5
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)