if an element has specific siblings then do something in jquery code example
Example 1: jquery siblings
$( "li.third-item" ).siblings().css( "background-color", "red" );
Example 2: jquery select self and siblings
$(this).siblings().addBack()
$( "li.third-item" ).siblings().css( "background-color", "red" );
$(this).siblings().addBack()