I have the following:
var thisTable = $(this).closest('table').id;
Firebug shows:
$(this).closest('table').id -> Undefined
However, the following does work:
$(this).closest('table').attr('id') -> "myTable"
$(this).closest('table').prop('id') -> "myTable"
Is the .id method not supported after jQuery's selectors like .closest?