find

英[faɪnd] 美[faɪnd]

v.find;discover;find out;discover

n.find something ;The person who was discovered

jquery find() method syntax

Function:The find() method obtains the descendants of each element in the current element collection and filters them by selector, jQuery object or element.

Syntax:.find(selector)

Parameters:

Parameter Description
selector String value, containing the selector expression for matching the current set of elements.

Description:If given a jQuery object that represents a collection of DOM elements, the .find() method allows us to search for these elements in the DOM tree. descendants and constructs a new jQuery object with the matching elements. The .find() method is similar to the .children() method, except that it only traverses a single level down the DOM tree. The first obvious feature of the .find() method is that it accepts a selector expression of the same type as the expression we passed to the $() function. Elements will be filtered by testing whether they match the expression.

jquery find() method example

    

Hello, how are you?

Me? I'm good.

Run instance »

Click the "Run instance" button to view the online instance