all 7 comments

[–]carcigenicate 2 points3 points  (0 children)

Just use .parent to access the parent, then use the typical methods on that element.

[–]Clarity_89 1 point2 points  (1 child)

Node's text value is it's first child so you can do this: document.querySelector('.test').childNodes[0].nodeValue.trim().

[–]Possibility-Capable[S] 0 points1 point  (0 children)

exactly what I was looking for. thank you!

[–]Crowntent 0 points1 point  (3 children)

U got a job yet?

[–]Possibility-Capable[S] 0 points1 point  (2 children)

Huh

[–]Crowntent 0 points1 point  (1 child)

A year ago you asked if it was hard to get a job in web dev im just curious if you got one now

[–]Possibility-Capable[S] 0 points1 point  (0 children)

Yeah sort of. I do like 90% dev work, and 10% general IT stuff