JQuery remove selected rows from a table
<p>Suppose I have a table:</p>

<pre><code> &lt;table id="mytable"&gt;
    &lt;tr&gt;1&lt;/tr&gt;
    &lt;tr&gt;2&lt;/tr&gt;
    &lt;tr&gt;3&lt;/tr&gt;
    &lt;tr&gt;4&lt;/tr&gt;
    &lt;tr&gt;5&lt;/tr&gt;
    &lt;tr&gt;6&lt;/tr&gt;
    ...
    ...
   &lt;/table&gt;
</code></pre>

<p>I know you can use <code>('#mytable').find("tr:gt(n)").remove();</code>
to remove all rows after nth row.
But is there a similar function to let you specify a range of rows you want to remove? say I want to remove row 2 to row 5? or I just want to remove row 2?</p>

<p>do i have to add an id to each row to achieve this?</p>

<p>thanks</p>
