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:
- select one row
- select another row in same table
- find out if the row selected at (2) has higher or lower index than row selected at (1)