Here's a one-liner:
$('table tr').slice(1,-3);

--John

On 8/29/07, Joel Birch <[EMAIL PROTECTED]> wrote:
> Hi Felix,
>
> As of jQuery 1.1.4 there is a new slice() method which works similar to the
> JavaScript native Array.slice() method, except on jQuery objects. Therefore,
> I guess you could do something like:
>
> var $rows = $('table tr');
> $rows.slice(1,$rows.length-3);
>
> I may not have calculated the slice parameters properly because I wanted to
> post this quick enough to beat Karl to the punch :)
>
> Joel Birch.
>

Reply via email to