jquery delete the parent div of selector from html code example Example: how to remove the parent div from the child in jquery $(this).closest('.parentClassname').remove();