0

I try to use jQuery DataTables but I get the error

TypeError: c is undefined jquery.dataTables.min.js:36:417
jQuery 8
    ub
    kb
    i
    success
    fire
    fireWith
    done
    callback

I don't know what is wrong with my code as I can see the JSON correctly retrieve and is in the correct format too but I don't know what is wrong with it that I get the above error

$('#accountsTable').DataTable({
    "processing" : true,
    "serverSide" : true,
    "pageLength" : 100,
    "ajax" : {
        "url" : "/accountMaster",
    "data": function (data) { 

    }},
"columns": [{
"data": "cid"
}, {
"data": "account"
}, {
     "data": "ifsc"
 }, {
  "data": "purpose"
 }, {
 "data": "requestedby"
 }, {
 "data": "requesteddate"
 }, {
 "data": "action"
 }
 ]
 });
Durga
  • 545
  • 7
  • 21
  • 39

0 Answers0