16
rated 0 times
[
17]
[
1]
/ answers: 1 / hits: 23274
/ 13 Years ago, sat, february 18, 2012, 12:00:00
Is there a way to get innerText of only the top element (and ignore the child element's innerText) ?
Example:
<div>
top node text
<div> child node text </div>
</div>
How to get the top node text while ignoring child node text ? innerText property of top div seem to return concatenation of both inner , top text.
More From » html