//Using jQuery. $('.myElement').empty(); //Using Vanila JS document.querySelector('.myElement').innerHTML = '';