jquery remove child element from parent code example
Example 1: how to remove the parent div from the child in jquery
$(this).closest('.parentClassname').remove();
Example 2: delete div based on select
$('#record_nav ul li').on('click', function(e){
$('#record_nav ul li.selected').removeClass('selected');
$(this).addClass('selected');
$('.content').hide();
var id = $(this).data('target');
$(id).show();
});