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 Interactive Web Pages with JavaScript Traversing and Manipulating the DOM with JavaScript Perform: Appending and Removing Elements

I 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.

Colin Marshall
Colin Marshall
32,861 Points

Julio Mayorga, please copy paste your code here so we can check what you have. Thanks!

var deleteTask = function () {
    console.log("Delete task...");
    var listItem = this.parentNode;
        var ul = listItem.parentNode;

  ul.removeChild(listItem);

}
Colin Marshall
Colin Marshall
32,861 Points

Thanks! 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.

Colin Marshall Awesome! However, it is still not working. I had the same exact code.

Colin Marshall
Colin Marshall
32,861 Points

We'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.

Colin Marshall

This is the link to it http://cdpn.io/JoZWby

Codepen is blocking your link to the full page view. Here is a Codepen link to the editor view.

Thank you Robert Richey