Is there a function similar to jQuery .closest() but for traversing descendants and returning only closest ones?
jQuery
.closest()
I know that there is
You can use find with the :first selector:
find
:first
$('#parent').find('p:first');
The above line will find the first element in the descendants of #parent.
#parent