Attempting my first Javascript project, playing around with DOM to make a To-Do List. After adding an item, how do i get the \'Remove\' button to function and remove the ite
Use this
// +your code ..... node.appendChild(removeTask); // + modify removeTask.onclick = function(e){ var dom = this; var p_dom = this.parentNode; console.log(p_dom); var parent_node = p_dom.parentNode; parent_node.removeChild(p_dom); }