Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript One Solution

tomd
tomd
16,701 Points

I used 'list.parentNode.parentNode' to select the body and it didn't work. Why?

I understand why 'wrapper.parentNode' works but why doesn't my way work? the lists parent is the wrapper and then the wrappers parent is the body. I can't see why it wont work.

Can you add the HTLM and Javascript to this so we can see what might be the issue?

2 Answers

Hi Tom,

As Robert said, could you share the code (HTML & JS) here so we could look into it together?

tomd
tomd
16,701 Points

Okay this is weird, it seems to be working fine now.. haha. Thank you both for looking at my question :D