how to remove the parent of the clicked child code example
Example 1: how to remove the parent div from the child in jquery
$(this).closest('.parentClassname').remove();
Example 2: jquery on click remove parent div
$(this).parent().parent().fadeOut(300);