Code has been added to clipboard!

Use of JavaScript removeChild()

Example
var nodeChild = document.getElementById("child1");
nodeChild.parentNode.removeChild(nodeChild);