WeCodeAcademy

jQuery Selectors

jQuery selectors work like CSS selectors: "p" (element), ".class", "#id", "ul li" (descendant), "[type='text']" (attribute), and extras such as :first, :even and :contains().

Examplehtml
Open in editor »

.length tells you how many elements matched, which is handy for checking that your selector found something.

Quick check

Which selector finds every element with class hot?

Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.

Tip: use the left and right arrow keys to move between lessons.