set span text javascript code example
Example 1: change span value javascript
document.getElementById("serverTime").innerHTML = ...;
Example 2: set span text
$("#spanID").text('your text');
Example 3: js add a tag inside span
var span = document.getElementById("span");
var a = document.createElement('a');
a.href = "http://domain.com";
span.appendChild(a);