SyntaxFix
Write A Post
Hire A Developer
Questions
$('tr').click(function(){ alert( $('tr').index(this) ); });
For first tr, it alerts 0. If you want to alert 1, you can add 1 to index.
tr