remove all sub elements of element js code example
Example: Javascript remove all child elements
var myDiv = document.getElementById("myDivID");
myDiv.innerHTML = "";//remove all child elements inside of myDiv
var myDiv = document.getElementById("myDivID");
myDiv.innerHTML = "";//remove all child elements inside of myDiv