title: using jquery, remove all the table elements except the last one
body: <p>In my HTML page, I have a table with the id ="productsTable", I wanna remove all its elements except the last one.</p>
  
  <p>I started by this code which will remove all the elements:</p>
  
  <pre><code>$('#productsTable').empty();
  </code></pre>