Next Siblings Selector

Syntax

$("prev ~ siblings")

Description

Next Siblings Selector is used to select all the next sibling elements of a given element having same parent. The below example finds all the input descendants of a document.

Example Code

Result:

After
sibling1
sibling2
niece
sibling3




Ask Questions

Ask Question