Stuart, in 1.1.4 you have the slice() method and you can using it like
$('#myTable tr').slice(firstRow, lastRow); keeping in mind that count starts
with 0.

I am working on a plugin that is using it:
http://benjaminsterling.com/experiments/jsGalScroll/common/js/jqGalScroll.jsline
20 and 30.

On 8/29/07, Stuart <[EMAIL PROTECTED]> wrote:
>
>
> I'm trying to figure out an efficient way to select a range of table
> rows. What I'd like to do is select perhaps rows 11 through 19.
>
> I want to have the selector put the desired rows into the jquery
> object instead of grabbing all rows and looping through them to
> operate only on the ones I want.
>
> I keep thinking something like this where the .not() sets the range.
> It seems almost right but I know its not.
> var firstRow = 11, lastRow = 19;
>
> $('#myTable tr').not(':lt(' + firstRow + '), :gt(' + lastRow + ')');
>
> I know it's simple I just haven't hit on it yet.
>
>


-- 
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com

Reply via email to