I am using datatable to list and sort the results.
This is how i initialized datatable
$('#example1').DataTable({bFilter: false, bInfo: false, paging: false});
It works fine. But i need to change the default table empty message No data available in table
to No records found
. Please help.
The answer by Ajinkya should still work because the library currently maintains backward compatibility with the old option format, but with more recent versions of the DataTables library (1.10+) you should use:
See: https://datatables.net/reference/option/language.emptyTable
Also, if you want to customize the info line when the table (or search results are empty):
See: https://datatables.net/reference/option/language.infoEmpty
Reference: http://datatables.net/forums/discussion/2327/how-to-localize-the-string-no-data-available-in-table