SyntaxFix
Write A Post
Hire A Developer
Questions
Simpler solution:
var dt = $('#table_scroll').dataTable(); $.getJSON(url, null, function (json) { dt.fnClearTable(); dt.fnAddData(json.aaData); dt.fnDraw(); });