javascript not updateing text in span code example Example: javacsript update text in span document.getElementById("myspan").textContent="newtext";