jQuery has() Method
jQuery has() Method
The has() method is used to return all elements that have one or more elements inside of them that match the specified selector. For multiple element selections, we have to use commas in between them.
Syntax:-
Its syntax is:- $(selector).has(element)
Further Explanation:-
Parameter | Description |
---|---|
element | Required. Specifies a selector expression or an element to match elements against |