A little shot in the dark, but I assume that you have a footer or maybe even data entry at the bottom of the table, and you want to add rows to the data before the footnote. In this case, you should rebuild your table as follows:
<table id="myTable"> <thead> <tr></tr> </thead> <tfoot> <tr></tr> </tfoot> <tbody> <tr></tr> </tbody> </table>
Yes, tbody appears after tfoot . Ward, huh?
Then you can just use this:
$("#myTable tbody").append(newrow);
Eric Oct 29 '09 at 20:43 2009-10-29 20:43
source share