Is there an equivalent to .closest() that searches down the DOM tree instead of up?
The closest method does actually search down the tree (despite what the documentation says), but I know what you mean. You want one that searches among the children of the element. Depending on how you want to search:
closest
$('#Id').children('div');
or
$('#Id').find('div');
548k questions
547k answers
4 comments
86.3k users