elemen jQuery sebelum

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