Select all the elements from list but not the last


/ Published in: jQuery
Save to your folder(s)

Select all the elements from list but not the last


Copy this code and paste it in your HTML
  1. $(document).ready(function(){
  2.  
  3. $('ul li:not(:last)').append('/');
  4. });

Report this snippet


Comments


You need to login to view comments.