How do I remove the parent element and all the respective nodes using plain JavaScript? I\'m not using jQuery or any other library. In other words, I have an element and whe
Change your function like this:
function delete_row(e) { e.parentNode.parentNode.parentNode.removeChild(e.parentNode.parentNode); }