I have a table that has checkboxes within tds. The checkboxes have ids that form an array (s[1], s[2], s[3], s[4], etc...) and I am trying to find out the numeric row location of the checkbox within the table>tbody (YES, this row location also matches the index inside the array. Here's the code I'm trying but the result is always "0":
$('input:checkbox').bind('change',function() {
var thisRow = $('tbody tr').index();
$('input:text[id=qty[' + thisRow + ']').attr('readonly','false')
.focus();
alert(thisRow);
});