i have a datatable using ajax json source, with a filter parameter
by default, on page load, i want the table to be empty, so use an empty string as the parameter
on entering text in a text field and clicking a button, the text field value is passed as a parameter, and the table is reloaded.
$("#confirm").click(function(){
emailaddress = $('#Email_Address').val();
table.ajax.url('/ajax/invoices.php?OrderEmail='+emailaddress).load();
});
At the moment, i have a message displayed in the table on zeroRecords, so when the page is loaded, the message is displayed.
language: {
"zeroRecords": "Confirm your email address above to display the ticket orders placed"
},
How can i change this message on reloading the data, so that if no rows are returned, the user is given a visual clue that there are no rows, - otherwise it looks like nothing has happened