datatable ajax data.length
datatable ajax data.length

In ajax of datatables, if 'data.length' is 1, we want to trigger an alert, or we want to run the datatable.
if (data.length == 1) {
alert("message");
} else {
datatables....
}
Is it possible?
This discussion has been closed.
Answers
Yep, there are two places you can do it - either in
xhr
orajax.dataSrc
Colin