For each selected element, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree
DollarJS (new set)
$('p').closest('.outer')
For each selected element, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree