Skip to main content
jQuery Logo

Tagged: descendant


.closestDescendant( selector [, findAll ] )

Get the first element(s) that matches the selector by traversing down through descendants in the DOM tree level by level. It use a breadth first search (BFS), that mean it will stop going deeper in a subtree if the first matching descendant was found in the current subtree.

0.1.2

Released February 17, 2014

6
Watchers
3
Forks

Tags