74
rated 0 times
[
80]
[
6]
/ answers: 1 / hits: 42649
/ 12 Years ago, sat, april 14, 2012, 12:00:00
I really cannot understand why this does not work. I've tried couple of tricks but I just don't get it.
<html>
<head>
<script type=text/javascript>
alert('Hey');
var vText = document.getElementById(results);
vText.innerHTML = 'Changed';
alert(vText.innerHTML);
</script>
</head>
<body>
<div id=results>
hey there
</div>
</body>
</html>
More From » html