If I have:
<div id='parent'>
<table>
<tr>
<td>
<div id='child1'></div>
</td>
</tr>
<tr>
<td>
<div id='child2'></div>
</td>
</tr>
</table>
</div>
I tried: $('#parent> table > tr:eq(1) > div');
I would like to select a certain child div at its index. For example, I would like to select the second child div child2. A trivial solution is:
var div2 = $('#child2');
But I would rather like to do so with the parent div:
var div2 = $('#parent div')...get(1); // 1 is the index.
Would this be possible?