function clearBox(elementID) { document.getElementById(elementID).innerHTML = ""; } //seems like there is no built in funciton's but in jquery $(element).empty();