3
rated 0 times
[
6]
[
3]
/ answers: 1 / hits: 28251
/ 13 Years ago, fri, april 22, 2011, 12:00:00
i have:
<td id=td1>
<div>
aaaaaa
</div>
</td>
how can i get the innerHTML of the child of td1 ?
function displaymessage() {
var i = 0;
alert(document.getElementById(td1).childNodes[0].innerHTML);
}
dosen't work.
More From » javascript