Skip to content
Justice Tech School

Filtering

first, last, eq, filter, not and has narrow a selection.

Example
$('li').filter('.on');
$('li').not('.off');
$('div').has('p');
$('li').last();

Exercise

Exclude matches.

$('li').('.off')

Quiz Test

What does filter do?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.