DEV Community

Cover image for DataTable Add Custom Error Messages For JQuery
Manikandan P
Manikandan P

Posted on

DataTable Add Custom Error Messages For JQuery

Hello developers hope are you doing well? today will discussed Jquery I am Facing this problem and Dedatable errors how i have handled this problem so i will explain and give me bellow code!
datatable errorMode is the Avoid the ERROR MESSGAES

//stop this error only
$.fn.dataTable.ext.errMode=='throw'

//stop error and custom mssages add

$.fn.dataTable.ext.errMode = function ( settings, helpPage, message ) { 
   //add Error Messages and any Functions
};
Enter fullscreen mode Exit fullscreen mode

Top comments (0)