Get the deepest descendants matching an optional selector of each element in the set of matched elements.
Download jQuery-deepest.js below and include it either as an external file, or concatenate it with other scripts to reduce HTTP requests, or simply copy & paste the raw code into an embedded script on your page.
See my blog post or the associated example files below.