get text inside div except other in element
HTML
<div>
skjb jksbn fkjsbnk
<a>djb kjsbasjbnhjsv</a>
<span>skvj bnskjvnkjsvn kjhvs</span>
hey thsis skj nsdj snfdkjsn s
</div>
JavaScript
var a = $("div")
.clone() //clone the element
.children() //select all the children
.remove() //remove all the children
.end() //again go back to selected element
.text();
alert(a);