jquery find closest child code example
Example: jquery find parent closest by id child
$( "li.item-a" )
.closest( "ul" )
.css( "background-color", "red" );
$( "li.item-a" )
.closest( "ul" )
.css( "background-color", "red" );