Posted By

mortu on 06/23/11


Tagged

jquery selector notLast


Versions (?)

Select all the elements from list but not the last


 / Published in: jQuery
 

Select all the elements from list but not the last

  1. $(document).ready(function(){
  2.  
  3. $('ul li:not(:last)').append('/');
  4. });

Report this snippet  

You need to login to post a comment.