javascript all span change text to data code example Example: javacsript update text in span document.getElementById("myspan").textContent="newtext";