Skip to content
Justice Tech School

Siblings

siblings, next, prev, nextAll and prevAll move sideways.

Example
$("li.on").next();
$("li.on").prev();
$("li.on").siblings();
$("li.on").nextAll();

Exercise

Next element.

$("li").()

Quiz Test

What does siblings return?

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