I'm trying to update the innerHTML for a div tag and maybe something is wrong in the simple application here:
<!DOCTYPE html>
<html lang="en" xmlns=""http://www.w3.org/1999/xhtml"">
<head>
<title>Test</title>
<script>
var element = document.getElementById("aaa");
element.innerHTML = "1";
</script>
</head>
<body>
<div id="aaa">aaa</div>
</body>
</html>
I want the "aaa" to be "1" when I see it in a browser.
any idea?
thanks