The has() method returns all elements that have one or more elements inside of them,The has()
method returns all the elements which matches at least one of the elements passed to this method. The has() method accepts a mandatory parameter which reduces the matched set of elements.
Syntax : $(selector).has(element)