jquery remove closest div code example
Example 1: jquery nearest
$( "li.item-a" )
.closest( "ul" )
.css( "background-color", "red" );
Example 2: jquery remove closest
$(e).closest('div').remove();
Example 3: jquery remove closest parent
$(this).parent('div').remove();