Easy Tutorial
❮ Ajax Ajaxcomplete Sel Nthoftype ❯

jQuery next() Method

jQuery Traversing Methods

Example

Return the next sibling element of each <li> element with the class name "start":

Result:


Definition and Usage

The next() method returns the next sibling element of the selected element.

Sibling elements are elements that share the same parent.

Note: This method returns only one element.

DOM Tree: This method traverses to the next sibling element of the DOM elements.

Related methods:


Syntax

Parameter Description
filter Optional. Specifies a selector expression to narrow down the search for the next sibling element.

More Examples

Select the next sibling element of each <div> element

Narrow down the search


jQuery Traversing Methods

❮ Ajax Ajaxcomplete Sel Nthoftype ❯