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