jQuery element ~ siblings Selector
jQuery element ~ siblings Selector
The ("element ~ siblings") selector is used to select sibling elements that appear after the specified element. Both of them should have the same parent.
Syntax:-
Its syntax is:- $("element ~ siblings");
Further Explanation:-
Parameter | Description |
---|---|
element | Required. Any valid jQuery selector |
siblings | Required. Specifies the siblings of the element parameter |