jQuery has method is used to get the elements which contains the particular element inside it.
Syntax : jQuery has method
$(selector).has(element);
element: Pattern to match the elements which has the supplied element in has method.
$(selector).has(element);
element: Pattern to match the elements which has the supplied element in has method.