jquery tree traversing help

Posted by rod on Stack Overflow See other posts from Stack Overflow or by rod
Published on 2010-05-10T16:40:32Z Indexed on 2010/05/10 16:44 UTC
Read the original article Hit count: 227

Filed under:

Hi All,

Given simple DOM:

<form id="form1">...</form>

<div>
   <div>
      <a href="#" id="export">Export</a>
   </div>
</div>

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

Thanks, rodchar

© Stack Overflow or respective owner

Related posts about jQuery