js change span value code example
Example 1: javacsript update text in span
document.getElementById("myspan").textContent="newtext";
Example 2: change span value javascript
document.getElementById("serverTime").innerHTML = ...;
document.getElementById("myspan").textContent="newtext";
document.getElementById("serverTime").innerHTML = ...;