Have you tried:
$("tr").index(this)
The documentation shows just passing this and that the preceding selection should be where the node is found. If you need to find it in a specific table (and there are multiple), you may need to provide some context:
// haven't tested this
$("tr", $(this).closest("table")).index(this)