Can't get DataTable to load
Can't get DataTable to load
asilva
Posts: 2Questions: 1Answers: 0
Link to test case: https://live.datatables.net/jitopodi/1/edit?html,css,js,output
Complete newbie here. I've tried to check my code against the sample in JS Bin and other issues in the forum, but I can't figure out what the problem could be. I'm getting no errors back when I inspect the code, but all I get is just the unformatted table. What am I missing?
Answers
Nevermind! I played around with the JS Bin a bit more and I don't know why the JS function to call the table wasn't working but I got it to work by using the JQuery call.
Your id quote is wrong!
You type
“
but it should be"
There are a couple other issues in addition to what @choc mentioned. You are loading jquery.js and datatables.js twice. These should only be loaded once. They are included in the concatenated CDN. I commented the extras out in the test case.
You are using the selector
#williams
but theid
isWilliams
. This is case sensitive. Updated test case:https://live.datatables.net/jitopodi/6/edit
Kevin