In my table, I want to redraw table after delete action is completed.
var table = $(".admin-data-table").dataTable(
...
"drawCallback": function( settings ) { // When the draw is completed:
$(".delete-confirm-yes").click(
function(){
$.ajax({
url: apiDeleteUrl,
type: "delete",
data: {item_id: itemIdToDelete},
success: function(data){
$('#delete_confirm').modal('hide');
table.ajax.url(url).load();
I get the following error:
Cannot read property 'url' of undefined
What am I missing?