How would I get the first level children and not get the grandchildren as well
for instance
<div id="topLevel">
<div>
<div>
</div>
</div>
<div>
</div>
<div>
so, if I am starting from the div with the ID of "topLevel" how do I get the child div's one level down and not the grandchild div. I've tried getElementByTagName and this returns all three div's when I only want to get 2 of them.
Start Free Trial