How to add custom warning message on table empty or no match found in jquery datatable

datatable, javascript, jquery, php, warnings

Solution

check this which sets your custom messages.

$(document).ready(function() {
    $('#data_table_id').DataTable( {
        "language": {
            "lengthMenu": "Display -- records per page",
            "zeroRecords": "No matching records found - We don't add anything yet No data available in table - no data of your choice.",
            "infoEmpty": "No records available"
        }
    } );
} );

Problem

I have 2 data-table sharing the same jquery-dataTables-js because I cannot change it inside the JavaScript file, is there any alternate way that I can change it I want to customize the default error message to my own. No matching records found - We don't add anything yet No data available in table - no data of your choice.

Original source

Related problems