jquery remove parent div on click code example
Example 1: how to remove the parent div from the child in jquery
$(this).closest('.parentClassname').remove();
Example 2: jquery delete grand parent of clicked element
$(this).closest('.grand-parent-class-name').remove();
Example 3: jquery on click remove parent div
$(this).parent().parent().fadeOut(300);
Example 4: jquery on click remove parent div
$(document).ready(function(){
$('#copy').clone().removeAttr("id").appendTo('#paste');
});