37
rated 0 times
[
43]
[
6]
/ answers: 1 / hits: 25230
/ 11 Years ago, wed, february 27, 2013, 12:00:00
Why doesn't innerHtml
work?
<script src=jquery.js></script>
<script type=text/javascript>
function chat()
{
alert (started!);
document.getElementById(test).innerHtml=foo;
}
</script>
<body id=body onload=chat();>
<p id=test>
test..
</p>
</body>
started! is showing, but the content of <p>
doesn't get changed to foo
as intended. Why?
More From » html