how can i pass the js object to datatable ajax

how can i pass the js object to datatable ajax

marouane77marouane77 Posts: 1Questions: 1Answers: 0

-------> js object -- var dataa = '{"data":[' +
'{"id":"1","name":"kkk", "position": "System Architect", "salary": "$320,800", "start_date": "2011/04/25", "office": "Edinburgh", "extn": "5421"}'
']}';
-------->the datatable
var table = $('#exampleee').DataTable({
"ajax": dataa,
"columns": [{
"className": 'details-control',
"orderable": false,
"data": null,
"defaultContent": ''
},

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.