title: JQuery remove last number of list items
body: <p>I have a var containing a number and need to subtract this number from the total number of list items. Then I need to remove the end items in the list eg. Total = 20; Number of list items = 18; Final number = 2; Then remove the last 2 list items.</p>
  
  <p>Thanks for any help.</p>