Using data 1.10 with a table created by dom. I am trying to add a new row of data to the ajax response, but nothing happens. The same code alone (without ajax) works fine. Yes, response.success returns "true".
// this works and adds a new row to the table
$('#test').on('click', function () { dt.row.add( [ 'td0', 'td1', 'td2', 'td3' ] ).draw(); });
// the same code doesn't work in ajax response ...
$('#dtCreate').on('click', function () { $.ajax({ type: 'post', url: '/test/process/p_db_create.php' }).done(function (response) {
source share