jQuery Element Befor

$( "li.third-item" ).prev().css( "background-color", "red" );
Weary Wildebeest