change html of a span element code example
Example 1: javacsript update text in span
document.getElementById("myspan").textContent="newtext";
Example 2: set span text
$("#spanID").text('your text');
document.getElementById("myspan").textContent="newtext";
$("#spanID").text('your text');