What is the jQuery find() method?

The jQuery find() method returns the descendant elements of a selected element.

A descendant is a child, grandchild, great-grandchild, etc.

Given a jQuery object, the find() method allows the user to search through the descendants of these elements (in the DOM tree)​, ​and construct a new jQuery object from the matching elements.

The command above selects all the descendants of the 'ul' tag.
The command above selects all the descendants of the 'ul' tag.

Syntax

Below is the syntax used to select all descendants of a selector and filter them using find():

$(selector).find(filter)

Code

The following example is a basic implementation of using the find() method to select all descendants of the ul element. The code selects and changes the styling of the selected elements to highlight them:


Free Resources

Copyright ©2026 Educative, Inc. All rights reserved