Skip to content Skip to sidebar Skip to footer

Uncaught Typeerror: Undefined Is Not A Function For Datatables

I am working in ASP .NET MVC4. When jquery is loaded then I got an error Undefined is not a function by using jquery. In HTML version its working correctly but when it loaded thr

Solution 1:

Sorry I am answering my own question I got error for this question it is just rearranging file sequence in file loading Thanks to all who give me time to solve my problem

Solution 2:

I think the problem is constructor DataTable(), It is supposed to be capitalized. Instead of $('#dt_inbox').dataTable() use $('#dt_inbox').DataTable()

Solution 3:

You problably forgot to add the plugin to your bundle. The following questions goes into more details:

Usage of the ASP.NET MVC4 jquery/javascript bundles

Solution 4:

I was struggling with the same problem for hours.. My issue was resolved when I changed the $ to jQuery in my code.

Solution 5:

Well if you are using AMD pattern, you would need to keep your module name to "datatables" so that you don't get "Uncaught TypeError: jQuery(...).DataTable is not a function"

Below link was helpful. https://datatables.net/forums/discussion/21178/amd-definition-without-explicit-module-name

Post a Comment for "Uncaught Typeerror: Undefined Is Not A Function For Datatables"