Just use the : last-child selector:
$('#ulscroller li:last-child')
DEMO: http://jsfiddle.net/f5v6R/
For example, if you want to know if it has a selected class, which you can do
if ($('#ulscroller li:last-child').hasClass('selected')) { // do something }
Denys seguret
source share