jQuery

jQuery Intro

jQuery Intro Quiz

jQuery Intro Exercise

jQuery Basic

jQuery Basic Quiz

jQuery Basic Exercise

jQuery Advance

jQuery Advance Quiz

jQuery Advance Exercise

jQuery Selectors

jQuery Effects

jQuery Events

jQuery Methods and Properties

jQuery Traversing

jQuery CSS and HTML Methods

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

Code Explanation

All Tutorials related to jQuery Traversing

All Sections related to jQuery