SyntaxFix
Write A Post
Hire A Developer
Questions
Since "$(this).parent().index();" and "$(this).parent('table').index();" don't work for me, I use this code instead:
$('td').click(function(){ var row_index = $(this).closest("tr").index(); var col_index = $(this).index(); });