you should be looking at http://docs.jquery.com/Traversing
var currentRow = $('table tr').eq(7); var howManyBefore = currentRow.prevAll('tr').length; cheers, - ricardo On Feb 8, 3:23 pm, pantagruel <rasmussen.br...@gmail.com> wrote: > Hi, > > I am selecting the row of a table. I would like to be able to count > how many rows there are in the table before the row I just selected. i > suppose there is a jQuery selector that will do this. > > Thanks