Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
A user might want to remove certain elements from the page in a browser-based app, like an item from a TODO list once completed. These actions require that we provide a way to remove a node from the DOM – like the node representing that list item or image element, for instance. One way to achieve this is with the remove()
method.
Further Reading
Interacting with the DOM – Treehouse course
One of the strengths of JavaScript is its ability to handle user interaction. In this follow-up course, you will learn how to use JavaScript to listen for different events (or user actions) and make changes to the DOM when they occur. In addition, you'll learn how to get around (or traverse) the DOM.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up