jquery get element next to parent by class 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)