clear content of node | SoloLearn: Learn to code for FREE!

+4

clear content of node

how do I clear the content of a div without remove the div?

1/3/2017 9:30:20 AM

dan

1 Answer

New Answer

+7

document.getElementsByTagName("div")[0].innerHTML = "";