How can I change the text "No data available in table"
How can I change the text "No data available in table"
redsunset
Posts: 44Questions: 15Answers: 0
Hi all!
I try to change the text "No data available in table".
I tried:
$(".dataTables_empty").text("There are currently no xyz available for this.");
and
$(".dataTables_empty").html("There are currently no xyz available for this.");
but no success
best greetings and thank you in advance!
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi @redsunset ,
What you're doing would work if the table is in the DOM (see here). If you're getting it from Ajax (or even in the DOM), it's better to use
language.emptyTable
to change the message - see here.Cheers,
Colin
thank you colin!