Selectors are used to do exactly what their name implies: select content within a Web page.
They use a very CSS-like syntax in order to do this. To take a few examples:
$("tag")
: Select all of the <tag> elements$(".className")
: Select all elements that have the className class applied$("#identifier")
: Select the element with the id of identifier$("tag.className")
: Select all <tag> elements that have the className class applied
This is paragraph 1
This is paragraph 2
This is paragraph 3
This is paragraph 4
This is paragraph 5