jquery tree traversing help
<blockquote>
  <p>Update: I'll have to go back to the
  drawing board on this one. Thanks for
  all the feedback.</p>
</blockquote>

<p>Hi All,</p>

<p>Given simple DOM:</p>

<pre><code>&lt;form id="form1"&gt;
...
&lt;/form&gt;

&lt;div&gt;
   &lt;div&gt;
      &lt;a href="#" id="export"&gt;Export&lt;/a&gt;
   &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>Starting with id=export, is there a way to go up a variable amount of divs and then get the closest form id?</p>

<p>Thanks,
rodchar</p>
