Answers for "delete all tag content"

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 "delete all tag content"

Browse Popular Code Answers by Language