How to refresh a simple Datatables table when adding new rows with jQuery
问题 I thought this one would be simple, but I can't find a reference that is not about ajax loaded data or data supplied in an array. I am using DataTables on an existing HTML table with this basic code: $('table.wizard').dataTable({ lengthChange: false, iDisplayLength: 100, order: [[9, 'desc']] }); I am adding rows to a table, dynamically, as data records are found like this: var $body = $('table.wizard tbody'); $tr = $("<tr>").appendTo($body).attr({ 'id': 'sku' + item.MerchantSKU, 'data-sku':