How to change a default message in DataTable, When 0 records found to be display in DataTable. Currently it shows "Loading..." continuously.I want to set message for this case "No records found".Please guide me,Thank you.
Asked
Active
Viewed 822 times
0
-
Possible duplicate of [Avoid Rendering "No Data Available in the table" in Datatables](https://stackoverflow.com/questions/37522399/avoid-rendering-no-data-available-in-the-table-in-datatables) – davidkonrad Dec 17 '17 at 00:01
1 Answers
0
Insert this code into .dataTable();
.
$('#example').dataTable( {
"language": {
"emptyTable": "No data available in table"
}
});
"language": {
"loadingRecords": "Please wait - loading..."
}

Calvin Ananda
- 1,440
- 1
- 14
- 30