JavaScript/DOM: Remove All Children
the best way to remove all children, is:
node.innerHTML = ""
const t = document.getElementById("abc"); // remove all children t.innerHTML = "";
the best way to remove all children, is:
node.innerHTML = ""
const t = document.getElementById("abc"); // remove all children t.innerHTML = "";