jquery find parent with calss code example
Example 1: jquery closest
$( "li.item-a" )
.closest( "ul" )
.css( "background-color", "red" );
Example 2: jquery get the parent node
$(selector).parent(filter)
$( "li.item-a" )
.closest( "ul" )
.css( "background-color", "red" );
$(selector).parent(filter)