Use 
$('ul#sidebarmenu1 ul li:last-child a').css('background-image', 'none');

:last => Matches ONLY  the last selected element.
last-child => Matches ALL elements that are the last child of their parent.

Maurício

  -----Mensagem Original----- 
  De: josb...@gmail.com 
  Para: jQuery (English) 
  Enviada em: terça-feira, 2 de junho de 2009 10:01
  Assunto: [jQuery] LI:last of submenu's



  I don't want background-image's on all the last list-items of a
  submenu.
  I use this code but it only apply the edit to the last submenu.
  $('ul#sidebarmenu1 ul li:last a').css('background-image', 'none');
  How can i apply this to all submenu's?

Reply via email to