How to change attribute of surrounding div/parent effectively?
<p>I have a table with some radiobuttons in it. When i click on a radiobutton, i want to update two of the sorrounding containers ID attribute (a div and a table). The problem is, i need to go 4 and 6 levels up, and the only way i know how to do this is parent().parent().parent().parent() etc. 
I am looking for a better solution, and was hoping someone could point me in the right direction. You can see an image of how the "parent-child" tree is here:</p>

<p><a href="http://imageshack.us/photo/my-images/834/imgkz.png/" rel="nofollow">http://imageshack.us/photo/my-images/834/imgkz.png/</a></p>

<p>I already have a clickhandler etc set up.</p>

<p>Basicly i need to check if the table's id attribute is "answeredTable", if not i need to change it. Also i need to check if the div two levels up from the table is "answered", if not, i need to change that too.</p>

<p>Thanks</p>
