JavaScript Hapus elemen dengan contoh kode ID
//removing element by ID
var element = document.getElementById("myElementID");
element.parentNode.removeChild(element);
Grepper