Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

clear html element javascript

element.innerHTML = ""
// or another solution with the DOM
var element = document.getElementById(elementID);
              
while(element.firstChild) {
  element.removeChild(element.firstChild);
}
 
PREVIOUS NEXT
Tagged: #clear #html #element #javascript
ADD COMMENT
Topic
Name
8+8 =