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*

9
  • 1
    Which is your code? try to use <> for create a complete snippet. can you write the desired output? Commented Mar 23, 2021 at 14:44
  • 1
    Did you do anything with your node list? like loop over it and try something like a .text() ? Commented Mar 23, 2021 at 14:44
  • Does this answer your question? get text of an element without children in javascript Commented Mar 23, 2021 at 14:48
  • @HereticMonkey No, I don't want to use jQuery. Commented Mar 23, 2021 at 14:51
  • @SimoneRossaini I am not sure if my code would help understanding the issue, I have updated the question to include desired output. Commented Mar 23, 2021 at 14:52