Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • Any code? Your selector is probably wrong, element does not conain any content when .textContent and innerText are empty. Commented Mar 31, 2012 at 12:47
  • What exactly do you mean by, "without children"? Commented Mar 31, 2012 at 13:07
  • @Pointy I only wanna have (as related to the last example - the td cell) the "Last visit was: Sat Mar 31, 2012 10:50 am" without the text from the anchors Commented Mar 31, 2012 at 13:17
  • So you want the text content of a node and all its descendant nodes? See the "without children" part made me think that you wanted to skip descendants. Commented Mar 31, 2012 at 13:18
  • No, I DON'T want the text + descendant but only the text Commented Mar 31, 2012 at 13:23