element.innerHTML = "" // or another solution with the DOM var element = document.getElementById(elementID); while(element.firstChild) { element.removeChild(element.firstChild); }