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() Selector

jQuery :has() Selector



The :has() selector is used to select all elements that have one or more elements inside of them and it matches the specified selector. For selecting multiple elements inside a single element, we just need to separate them with a comma.




Its syntax is:- $(":has(selector)");


Further Explanation:-


Parameter Description
selector Required. Specifies the element to select.

Code Explanation

All Tutorials related to jQuery Selectors

All Sections related to Jquery