Posted By: Anonymous
I am trying to work with jQuery’s Datatable JS for my project from this link.
I downloaded the complete library from the same source. All the examples given in the package seem to work fine, but when I try to incorporate them in my
WebForms,the CSS,JS do not work at all.
Here is what I have done :
My file structure for the JS and CSS in my Solution looks as follows :
I have added all the necessary JS and CSS references as shown in the manual. Still the rendering isn’t as expected. There is no CSS and even the JS doesn’t work.
Also in the console i get the following errors:
ReferenceError: jQuery is not defined TypeError: $(...).DataTable is not a function
I have still not bound any dynamic data here (like within a repeater or so) still it is not working.
Can someone please guide me in the right direction for this problem ?
There could be multiple reasons for this error.
- jQuery DataTables library is missing.
- jQuery library is loaded after jQuery DataTables.
- Multiple versions of jQuery library is loaded.
Include only one version of jQuery library version 1.7 or newer before jQuery DataTables.