how to set value to span tag in javascript code example Example: change span value javascript document.getElementById("serverTime").innerHTML = ...;