Élément clair des enfants JS
const myNode = document.getElementById("foo");
myNode.textContent = '';
Homely Heroin
const myNode = document.getElementById("foo");
myNode.textContent = '';
parent.querySelectorAll("*").forEach(child -> child.remove());
//Change the value of * if there is a specific class you want to remove
//otherwise leave the * for removing all child elements.