How can I change the color for empty table message?
How can I change the color for empty table message?
jjiang5
Posts: 14Questions: 4Answers: 1
Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:
This question has accepted answers - jump to:
This discussion has been closed.
Answers
How can I change the color for empty table message?
resolved. thanks
Could you post your solutions if self-answering in future? Then others can also benefit.
In this case, you can use CSS:
Allan
$('#xxxDT .dataTables_empty').text('No records found')
.css('color', '#FF0000');