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 trialJulio Mayorga
648 PointsI am having issues with the ul.removeChild(listItem); part. It is now deleting the nodes.
It seems like I have the same exact code as in the video. However, when I preview it, it does not remove the child.
Julio Mayorga
648 Pointsvar deleteTask = function () {
console.log("Delete task...");
var listItem = this.parentNode;
var ul = listItem.parentNode;
ul.removeChild(listItem);
}
Colin Marshall
32,861 PointsThanks! I fixed your code formatting for you. Check out the "Tips for asking questions" link on the right sidebar for instructions on how to post code to the forum.
Julio Mayorga
648 PointsColin Marshall Awesome! However, it is still not working. I had the same exact code.
Colin Marshall
32,861 PointsWe're going to need to see your entire app.js code and you might as well post your index.html code too just in case.
Julio Mayorga
648 PointsThis is the link to it http://cdpn.io/JoZWby
Robert Richey
Courses Plus Student 16,352 PointsCodepen is blocking your link to the full page view. Here is a Codepen link to the editor view.
Julio Mayorga
648 PointsThank you Robert Richey
Colin Marshall
32,861 PointsColin Marshall
32,861 PointsJulio Mayorga, please copy paste your code here so we can check what you have. Thanks!