problem with table after removing a row

problem with table after removing a row

I have a table with a number of rows in it each with a delete link which calls $("#" + id).remove(); of course passing in the right table row id each time.  I also have a row at the bottom that has divs with totals of columns in each row. 

After I add a row to the table I call a function that goes through each table row, gets the values that i need and keeps a running total.  I finally update the divs in the last row with these totals.  However, when I do the row.remove() and then call my calculate function it never completes.  

In my debugging it looks like the tblWorksheet table that I'm trying to get to, to get it's rows, is no longer recognized.  So I'm wondering if instead of removing the row by the id if I need to call the remove function on the table to tell it to remove the row.  If so I'm not sure of the syntax to do that.  The following doesn't work.  $("#tblWorksheet").remove("#" + id)  If that's not the case, anyone know why I couldn't get to my table after removing the row?  Thanks.