If I have a span, say:
hereismytext
How do I use JavaScript to change "hereism
document.getElementById("myspan").textContent="newtext";
this will select dom-node with id myspan and change it text content to new text
myspan
new text