jquery find near code example
Example 1: jquery nearest
$( "li.item-a" )
.closest( "ul" )
.css( "background-color", "red" );
Example 2: jquery find
$( "li.item-ii" ).find( "li" ).css( "background-color", "red" );
$( "li.item-a" )
.closest( "ul" )
.css( "background-color", "red" );
$( "li.item-ii" ).find( "li" ).css( "background-color", "red" );