Uncaught TypeError: Object [object Object] has no method 'dataTable'
Uncaught TypeError: Object [object Object] has no method 'dataTable'
Pardon me for asking this noob question, which many have asked before. The most common mistake are that the js is not properly included or the order of the included js is affecting the dependencies. I have kind of rule out 2 of this possible mistakes and I am still puzzled why I am getting the no method error.
On inspection this is how it looks like:
[code]
[/code]
In my main.js, I only have the code below:
[code]
$(document).ready(function() {
$('#table_id').dataTable();
});
[/code]
Correct me if I am wrong, the core DataTable css and js are included and the order is correct. Appreciate any advice.
On inspection this is how it looks like:
[code]
[/code]
In my main.js, I only have the code below:
[code]
$(document).ready(function() {
$('#table_id').dataTable();
});
[/code]
Correct me if I am wrong, the core DataTable css and js are included and the order is correct. Appreciate any advice.
This discussion has been closed.
Replies
Allan
I am using MVC 4 and this was killing me, it is adding the jquery bundle to the bottom of the page.