Add table row in jQuery
Asked 07 September, 2021
Viewed 2.3K times
  • 55
Votes

What is the best method in jQuery to add an additional row to a table as the last row?

Is this acceptable?

$('#myTable').append('<tr><td>my data</td><td>more data</td></tr>');

Are there limitations to what you can add to a table like this (such as inputs, selects, number of rows)?

30 Answer