[jQuery] Moving up the DOM
Another question that I've not found a solution to in the Docs yet. The
jQuery object, in combination with .find(), offers a zillion ways to seek
to a given element or elements and then traverse the tree down from there.
What about going up? Say I want to attach an event handler to an
element, then in the event handler I want to seek *up* the DOM to the
next, say, tr tag and then from there scan back down to elements with
certain classes? (Actual example I had to do recently in a straight-JS
project.) How would I do that with jQuery? Or would we need to add a
.climb() plugin?
On a related note, is there a way to extract the actual DOM nodes from a
jQuery object to do basic JS manipulation on them?
--
Larry Garfield
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/