DOM/Javascript: get text after tag
Something like this?
var p = document.getElementsByTagName("p")[0];
alert(p.childNodes[1].textContent)
use this .. http://jsfiddle.net/2Dxy4/
This is your HTML --
<p id="there">
<a>hello</a>
there
</p>
In your JS
alert(document.getElementById("there").lastChild.textContent)
or
alert(document.getElementById("there").childNodes[1].textContent)