DOM help, parents of parents, children of children
<p>I am using Drupal's Webform module which writes all the ids and classes automatically, so I can't add an Id to the place I want to add it.  And Drupal doesn't put one in for me.  Grrr.</p>

<p>I have no problem when I use my code with just a simple getElementById('myid'), but the element I need is a blank, no id, no class "a" that's inside a "legend" (which has a class but no id) that's inside a fieldset with an id.</p>

<p>I tried this code and several variations but it didn't work:</p>

<pre><code>document.getElementById('webform-created-id-here').getElementsByTagName('legend').getElementsByTagName('a');
</code></pre>

<p>I feel like I'm not understanding how to properly access that part of the DOM.  Can anyone offer help or suggestions?</p>

<p>Thank you!</p>
