title: How do you select a range of tr from a table using jQuery
body: <p>I find myself frequently in need of selecting a range of tr's from a table. For example, often times, the first tr is the headers of a table and the last tr is the footer/paging numbers of a table, and I don't want to select either of these two.  I know I can do</p>
  
  <p><code>$("#mytable&gt;tbody&gt;tr:gt(0)")</code> </p>
  
  <p>to skip the first tr, but that will include the last tr, which is the paging number row in my case.</p>
  
  <p>What is the most efficient way to get tr's whose indices are greater than 0 and less than the length of the collection? In other words, I want all tr's except the first and the last in the collection. </p>
  
  <p>Any idea?  Thanks.</p>