.has()

Reduce the set of matched elements to those that have a descendant that matches the selector or DOM element.