+ 4

clear content of node

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

3rd Jan 2017, 9:30 AM
dan
1 Antwort
+ 7
document.getElementsByTagName("div")[0].innerHTML = "";
3rd Jan 2017, 9:31 AM
Valen.H. ~
Valen.H. ~ - avatar