Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

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!

JQuery Selectors

Kostas Diakogiannis
Module by Kostas Diakogiannis, updated more than 1 year ago
No tags specified