What is the best method in jQuery to add an additional row to a table as the last row?
Is this acceptable?
$(\'#myTable\').append(\'
-
You can use this great jQuery add table row function. It works great with tables that have and that don't. Also it takes into the consideration the colspan of your last table row.
Here is an example usage:
// One table
addTableRow($('#myTable'));
// add table row to number of tables
addTableRow($('.myTables'));
- 热议问题