I\'m trying to find the index of a row in a table. I\'m trying to use the following code, but I seem to get an index of -1.
$(document).ready(function() {
Get the td object and its parent index is tr index
$(this).parent().index()