JS DOM: Remove All Children
the best way to remove all children is set empty string to innerHTML
.
const xx = document.getElementById("ZJDzc"); // remove all children xx.innerHTML = "";
the best way to remove all children is set empty string to innerHTML
.
const xx = document.getElementById("ZJDzc"); // remove all children xx.innerHTML = "";