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 JavaScript and the DOM (Retiring) Making Changes to the DOM Removing Nodes

remove li, code works on the treehouse workspace, but when do the same code in notepad++ it doesn't remove the li tags

I don't know why, I can get this code to work on the treehouse workspace, but when I use the same code in Notepad++ and view the page in chrome , it won't remove the li tags, but it adds the li tags with no problem. Is there any particular reason why it does that?

1 Answer

Try to view the source in windows editor while you are editing it in notepad++. If you discover the same issue in the editor then chrome has no fault. Otherwise disable the caching in chrome via the developer tools / network -> check disable cache.