How do I get the text \"there\" that comes after a tag in an html document:
hellothere
I see that the
use this .. http://jsfiddle.net/2Dxy4/
This is your HTML --
hello there
hello there
In your JS
alert(document.getElementById("there").lastChild.textContent)
or
alert(document.getElementById("there").childNodes[1].textContent)