GoConqr has a new look! Let us know what you think.

Module 2 of 15 · Media

JQuery Selectors

Kostas Diakogiannis

JQuery Selectors

JQuery Selectors

JQuery uses CSS selectors in order to grab DOM elements. So anything from the examples below is a valid JQuery selector.

$('nav') => Grabs all nav elements

$('nav > li') => Grabs all List items that are direct children of a nav

$('nav > li:last-of-type') => The last list item of a nav 

etc.

Any valid css selector can be used inside the $() as a selector. 

 

Find all possible JQuery selectors here!

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?