Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82823

how can i pass the js object to datatable ajax

$
0
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": ''
},


Viewing all articles
Browse latest Browse all 82823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>