Answers for "how to remove the content of a html element"

0

how to remove the content of a html element

const elementParent = document.getElementById('parentEl');
const elementToRemove = document.getElementById('childEl');
elementParent.removeChild(elementToRemove);
Posted by: Guest on July-30-2021

Code answers related to "how to remove the content of a html element"

Browse Popular Code Answers by Language