December 26th, 2016, 02:17 AM
Manipulating text in a SPAN tag
I have some text is a <span> tag:
Depending on certain actions, I'd like that text to go away.
<span id="my_text">Some text...</span>
This does not work:
Is there a way to do this?
document.getElementById('my_text').value = "";
December 26th, 2016, 02:42 AM
SPANs don't have values (they're not form fields) but they do have innerHTML content...
December 26th, 2016, 04:52 AM
Hi there Arty Zifferelli
you could also use...
~ the original bald headed old fart ~