.has()

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

.nextUntil()

Get all following siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object passed.