jquery-ancestors (npm): Select all ancestors to an element matching an (optional) selector.
Keywords: jQuery