jQuery children() Method
jQuery children() Method
The children() method is used to return all direct children of the selected element. It is only used to traverse down a single level. For multiple levels, we have to use find() method. This method cannot be used for getting text nodes.
Syntax:-
Its syntax is:- $(selector).children(filter)
Further Explanation:-
Parameter | Description |
---|---|
filter | Optional. Specifies a selector expression to narrow down the search for children |