delete elemt html javascript code example
Example 1: javascript clear div
//using javascript
document.getElementById(elementID).innerHTML = "";
//using JQuery
$('#elementID').html('');
Example 2: delete html with javascript
document.querySelector('selector').remove();