Yeah.....I think I remember reading about the slice method in the change log. I am using 1.1.4 so I should be set. The API doesn't list it yet so thanks for the code snippet.
Thanks Benjamin! On Aug 29, 11:58 am, "Benjamin Sterling" <[EMAIL PROTECTED]> wrote: > 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/jqGalSc... > 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 Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.com