Answers for "remove content in ( ) javaascript"

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

Browse Popular Code Answers by Language