how to empty a div in js code example
Example 1: javascript clear div
//using javascript
document.getElementById(elementID).innerHTML = "";
//using JQuery
$('#elementID').html('');
Example 2: delete all child elements jquery
$("div").empty();
//using javascript
document.getElementById(elementID).innerHTML = "";
//using JQuery
$('#elementID').html('');
$("div").empty();