javascript clear div

JavaScript
//using javascript
document.getElementById(elementID).innerHTML = "";

//using JQuery
$('#elementID').html('');
Source

Also in JavaScript: