Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

$(...).DataTable is not a function

Plain text1<br><script src = "http://cdn.datatables.net/1.10.18/js/jquery.dataTables.min.js" defer ></script>

//Just add defer at the end of this script
Comment

$(...).DataTable is not a function


<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/jquery.dataTables.min.js" type="text/javascript"></script>

Comment

$(...).DataTable is not a function

There could be multiple reasons for this error.

1. jQuery DataTables library is missing.
2. jQuery library is loaded after jQuery DataTables.
3. Multiple versions of jQuery library is loaded.
Comment

$(...).datatables is not a function

$("#yourTableID").DataTable(); // check "datatable" spelling to "DataTable()"
Comment

Uncaught TypeError: $(...).DataTable is not a function

<script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.25/js/jquery.dataTables.js" defer></script>
Comment

PREVIOUS NEXT
Code Example
Javascript :: vue v-for loop array 
Javascript :: javascript constants 
Javascript :: add options to select box dynamically jquery 
Javascript :: angular route 
Javascript :: fill in javascript 
Javascript :: debug bar laravel unninstall 
Javascript :: what is event loop in javascript 
Javascript :: react usememo hook 
Javascript :: js summation 
Javascript :: classnames 
Javascript :: skip map iteration javascript 
Javascript :: npx vs npm 
Javascript :: how to select last element in a array 
Javascript :: match if 
Javascript :: javascript link detector 
Javascript :: jquery validate submithandler 
Javascript :: react places autocomplete 
Javascript :: numbers split 
Javascript :: enhanced object literals in es6 
Javascript :: react native image swiper 
Javascript :: angular auth guard 
Javascript :: crone expression in spring boot 
Javascript :: html to pdf javascript libraries 
Javascript :: js test library 
Javascript :: particle js 
Javascript :: js days to hours 
Javascript :: how to pass props in react 
Javascript :: javascript filter method 
Javascript :: javascript variable scope 
Javascript :: sweet alert 2 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =