Skip to content
Justice Tech School

filter, not, first, last, eq

Narrow a set of matches.

Example
$("li").first();
$("li").last();
$("li").eq(2);
$("li").filter(".on");
$("li").not(".off");

Exercise

Third item.

$("li").(2)

Quiz Test

Is eq zero based?

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