Is there a function similar to jQuery .closest() but for traversing descendants and returning only closest ones?
jQuery
.closest()
I know that there is
What about this approach?
$('find-my-closest-descendant').find('> div');
This "direct child" selector works for me.