.last()
The .last() method in jQuery is used to filter the set of matched elements, keeping only the last one.
Highlight the last item
$('li').last().css('background','cyan');
Try now