cara menghapus innerhtml dalam javascript
//Using jQuery.
$('.myElement').empty();
//Using Vanila JS
document.querySelector('.myElement').innerHTML = '';
Samuel Abusa Kennedy