Timeline for How can I get the text of an element without children in JavaScript?
Current License: CC BY-SA 4.0
18 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 29, 2024 at 15:53 | answer | added | fijiaaron | timeline score: 1 | |
| Apr 12, 2023 at 16:03 | history | edited | isherwood | CC BY-SA 4.0 | edited title |
| Aug 18, 2015 at 15:53 | answer | added | sam2426679 | timeline score: 2 | |
| May 24, 2015 at 19:21 | answer | added | fredrikekelund | timeline score: 7 | |
| Feb 14, 2014 at 23:10 | vote | accept | Nik | ||
| Mar 31, 2012 at 14:29 | comment | added | Nik | I want both, the text in the element and in the childrens, but seperated | |
| Mar 31, 2012 at 13:29 | comment | added | Pointy | Yes but you want the text in the descendants, right? | |
| Mar 31, 2012 at 13:23 | comment | added | Nik | No, I DON'T want the text + descendant but only the text | |
| Mar 31, 2012 at 13:18 | comment | added | Pointy | 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. | |
| Mar 31, 2012 at 13:17 | comment | added | Nik | @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 | |
| Mar 31, 2012 at 13:07 | comment | added | Pointy | What exactly do you mean by, "without children"? | |
| Mar 31, 2012 at 13:02 | history | edited | Nik | CC BY-SA 3.0 | added 477 characters in body |
| Mar 31, 2012 at 12:54 | history | edited | Pointy | edited tags | |
| Mar 31, 2012 at 12:54 | answer | added | Johannes Egger | timeline score: 8 | |
| Mar 31, 2012 at 12:52 | history | edited | Nik | CC BY-SA 3.0 | added 1745 characters in body |
| Mar 31, 2012 at 12:51 | answer | added | Pointy | timeline score: 30 | |
| Mar 31, 2012 at 12:47 | comment | added | Rob W | Any code? Your selector is probably wrong, element does not conain any content when .textContent and innerText are empty. | |
| Mar 31, 2012 at 12:43 | history | asked | Nik | CC BY-SA 3.0 |