Oops, I misread. You wanted the count "before" the one you selected.
Please disregard my response!

On Feb 8, 9:22 am, James <james.gp....@gmail.com> wrote:
> Assuming "row" means the number of <tr>,
> and your tables looks like:
> <table>
>      <tr><td>data</td></tr>
>      <tr><td>data</td></tr>
>      <tr><td>data</td></tr>
>      <tr><td>data</td></tr>
>      <tr><td>data</td></tr>
> </table>
>
>  you can do something like:
> var count = $("table tr").length;
>
> http://docs.jquery.com/Core/length
>
> On Feb 8, 8:23 am, 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

Reply via email to