jQuery.closest(); traversing down the DOM not up
<p>Afternoon peoples.</p>

<p>I am having a bit of a nightmare traversing a DOM tree properly. I have the following markup</p>

<pre><code>http://pastie.org/999519
</code></pre>

<p>...
And I am trying to traverse from input.save at the bottom right the way up to div.node... This all works well with one copy of the markup but if I duplicate it (obvisouly changing the ID of the uppermost div.node and use jQuery.closest('div.node') for the upper of the div.node's it will return the element below it not the element above it (which is the right one). I've tried using parents() but that also has it's caveats. Is there some kind of contexyt that can be attached to closest to make it go up and not down? or is there a better way to do this.</p>

<p>Thanks in advance.</p>

<p>Alex</p>

<p>P.S It seems that stackoverflow has done something weird to the markup! - I just triple checked it and it is fine but for some reason it's concate'd it below</p>
