If your UL has an ID, then this might do it: $('ul_id').down('li:last-child')
Walter On Mar 26, 2008, at 9:51 AM, smartcookie wrote: > > Given this structure: > <ul> > <li>item1</li> > <li>item2</li> > <li>item3</li> > </ul> > > Whats the best method of finding the last item in the list? > > thanks > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---