javacsript Обновление текст в Span
document.getElementById("myspan").textContent="newtext";
Encouraging Eland
document.getElementById("myspan").textContent="newtext";
//set value in span using jquery
$("#idname").text("your value");
//set value in span using Javascript
document.getElementById("idname").textContent="Your value";
document.getElementById("message").innerHTML="your value";
document.getElementById("myspan").textContent="newtext";
document.getElementById("serverTime").innerHTML = ...;