My problem is that I have a table, but I only want a subset of the rows, from first index to last index. I thought you could do it like this:
$(\'table tr:gt
How about $('table tr').slice(2, 4)
Since JavaScript arrays are 0 indexed, that will give you the third and fourth row of the table. Slice will still return a jQuery wrapped (sub)set, so it's the same end result.