Удалить все детские элементы jQuery
$("div").empty();
Tomas Maillo
$("div").empty();
//for remove the child in jquery you can use the below code
$(".parent").empty();
$(this).find('span:first');
$(this).find(':first-child');
$(this).find('span').eq(0);
// Note that you don't need to use $(deleteElement) as deleteElement is already a jQuery object. So you can do it like this:
$(this).find('span:first').remove();
//for remove the child in jquery you can use the below code
$("selectorname").empty();
var element = document.getElementById('divName');
element.innerHTML = '';