set text from span javascript code example Example: change span value javascript document.getElementById("serverTime").innerHTML = ...;