How can I remove all child elements of a DOM node in JavaScript?
Answers
Answered by
0
Answer:
Explanation:
Between removeChild() and remove() , you can remove any node from the DOM. Another method you may see for removing child elements from the DOM is setting the inner HTML property of a parent element to an empty string ( "" ).
Similar questions