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 trialRod R
3,050 Pointsappending nodes video with Guil: 'add items' button working but new items arent displayed.
i tried to add an item to the ul element and it seems to be working because it looks like a new line appears but its blank. So in other words the new li i am trying to add (as shown in the video), when appended to the ul element/node, doesnt appear but a new 'blank' line does appear. I took a snapshot of the workspace and added here. Thanks
1 Answer
KRIS NIKOLAISEN
54,971 PointsFor your addItemButton event listener you are using a minus sign in your code where you should be using the assignment operator.
li.textContent - addItemInput.value;
should be
li.textContent = addItemInput.value;