Skip to content

Instantly share code, notes, and snippets.

View Anima-t3d's full-sized avatar

Anima-t3d

  • Between UTC+0 and UTC+12
View GitHub Profile
@Anima-t3d
Anima-t3d / jquery.deepest.js
Created June 8, 2011 15:42 — forked from anonymous/jquery.deepest.js
jQuery 'deepest' plugin
$.fn.deepest = function() {
/* based on: http://stackoverflow.com/questions/3787924/select-deepest-child-in-jquery
* rewrite from: https://gist.github.com/714851
* rewritten by: Anima-t3d march 1st 2011
*/
/// <summary>
/// Return the deepest child of this element.
/// var deepestElement = $("div").deepest();
/// For example, when run on this structure:
///