Finding HTML Elements

  • Ray Nicholus


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.


Parent Node Element Interface Node Interface Matching Element Relation Sibling 
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.

Copyright information

©  Ray Nicholus 2016

Authors and Affiliations

  • Ray Nicholus
    • 1
  1. 1.Johnson CreekUSA

Personalised recommendations