Without using any JavaScript frameworks, how do I dynamically change the text within a SPAN
element.
I know how to do this with a DIV
, it would be the following:
document.getElementById('myDiv').innerHTML = '...'
What's the equivalent of this for a SPAN
element?