how to get last element of array in jquery code example Example: how get last array value in jquery $( "li" ).last().css( "background-color", "red" );