DEV Community

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

Posted on

1

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Retry later