Q:

How to get one DIV in a maze of DIVs

i've got this html:
  <div id="a">
    <table>
    <tr>
      <td>
        <div id="c">Stuff</div>
      </td>
    </tr>
    </table>
  </div>

  <div id="b">
    <table>
    <tr>
      <td>
        <div id="c">Stuff</div>
      </td>
    </tr>
    </table>
  </div>

The questions is short: How can i get the "c" div which is in the "a" div? Will i still get duplicate id definition? If the html has to be changed, change it... I just need the code that actualy works. :) Thanks

A:

The questions is short: How can i get the "c" div wich is in the "a" div?

You have invalid HTML. You cannot have 2 elements in your DOM with the same id. Once you fix your markup and change the id of the second div you could use the getElementById function: 
var cDiv = document.getElementById('c');

And here's how you could change your HTML in order to avoid duplicate ids:
<div id="a">
    <table>
    <tr>
        <td>
            <div id="c">Stuff</div>
        </td>
    </tr>
    </table>
</div>

<div id="b">
    <table>
    <tr>
        <td>
            <div id="bc">Stuff</div>
        </td>
    </tr>
    </table>
</div>

