HTML table, clicked row’s number

Is there any way to find out row number where i recently clicked, in HTML table?
I need this behavior to find out whether use clicked on top and bottom of the currently selected row.

I suppose the algorithm will be:
1. select one row
2. select another row in same table
3. find out if the row selected at (2) has higher or lower index than row selected at (1)

newest questions tagged jquery – Stack Overflow

About Admin