I am trying to simply update a span tag usign the following method...
<script type="text/javascript">
document.getElementById("myspan").innerHTML="newtext";
</script>
<span id="myspan"> hereismytext </span>
But i am getting the following error:
document.getElementById("myspan") is null
Any ideas as to what is causing this?
Cheers
Rich