Menu
Hello,
I have the following:
[CODE]
<div id=”myId”>
<SOME LINKS>
<SOME IMAGES>
</div>
As I expect like :
document.links.length will give out the number of links on the whole document
I expect too :
p = document.getElementById(‘myId’);
p.links.length to give out the number of links inside the div tag with myId. The actual result, it’s null or not an object.
Why? and How can I access the subelements of an element I already got it by its Id?