170
rated 0 times
[
177]
[
7]
/ answers: 1 / hits: 18023
/ 15 Years ago, fri, march 6, 2009, 12:00:00
How can I refer to a nested div by id when it has the same id as a div nested in a similarly named div
eg
<div id=obj1>
<div id=Meta>
<meta></meta>
</div>
</div>
<div id=obj2>
<div id=Meta>
<meta></meta>
</div>
</div>
I want to get the innerHTML of meta
document.getElementById('obj1').getElementById('Meta').getElementsByTagName('meta')
doesn't work
More From » html