Can't get DataTable to load

Can't get DataTable to load

asilvaasilva 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

  • asilvaasilva Posts: 2Questions: 1Answers: 0

    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.

  • chocchoc Posts: 98Questions: 12Answers: 8
    edited October 10

    Your id quote is wrong!
    You type but it should be "

  • kthorngrenkthorngren Posts: 21,374Questions: 26Answers: 4,957

    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 the id is Williams. This is case sensitive. Updated test case:
    https://live.datatables.net/jitopodi/6/edit

    Kevin

Sign In or Register to comment.