Skip to main content
jQuery Logo
This version is old school. Please find jQuery plugins on npm.

.closestDescendant( selector [, findAll ] )

by Tobias Lindig

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.



Versions

Version
Date
Feb 17, 2014
Apr 08, 2013
0.1.0
Apr 08, 2013

GitHub Activity

6
Watchers
3
Forks

Maintainers

Licenses

Dependencies

  • jquery >=1.4