why here table_data is not having any rows and data ? how to use table_data.row.remove() here?
why here table_data is not having any rows and data ? how to use table_data.row.remove() here?
alpit
Posts: 1Questions: 0Answers: 0
in DataTables
$( document ).ready( function( $ ) {
var table_data=null;
$.ajax({
"url": 'arrays_short.txt',
"success": function(json) {
var tableHeaders;
$.each(json.columns, function(i, val){
tableHeaders += "" + val + "";
});
$("#tableDiv").empty();
$("#tableDiv").append('
');
//$("#tableDiv").find("table thead tr").append(tableHeaders);
table_data=$('#displayTable').dataTable(json);
},
"dataType": "json"
});
});
<body>
<div id="tableDiv"></div>
</body>
</html>
This discussion has been closed.