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