For each element in the set, get the first elements that match the selector by testing the elements themselves and traversing up through their ancestors in the DOM tree.
For each element in the set, get the first elements that match the selector by testing the elements themselves and traversing up through their ancestors in the DOM tree.
an Elements (which may be empty)
http://api.jquery.com/closest/
For each element in the set, get the first element that matches the selector by testing the elements themselves and traversing up through their ancestors in the DOM tree.
For each element in the set, get the first element that matches the selector by testing the elements themselves and traversing up through their ancestors in the DOM tree.
a Some containing the first one found, or None
http://api.jquery.com/closest/