jQuery Element Selectors
Using element selectors in jQuery means you can easily find HTML web page elements without manually finding the elements inside the HTML which can often be like finding a needle in a haystack.
The beauty of these special selectors is that a simple jQuery element selector line can find and select several HTML elements all at the same time! Magic.
Here is how you do it:
$("p") //selects all
elements. $("p.intro") //selects all
elements with. $("p#demo") //selects the first
element with id="demo".
Check out the excellent jQuery Element Selector Tester.