Why DataTables does not work for my case?

Why DataTables does not work for my case?

ccwccw Posts: 2Questions: 2Answers: 0

Hi,

In my WordPress site, I do as follows:

  1. Create a test page. Then insert a table based on the https://datatables.net/manual/installation
  2. Download datatable files and then upload them to my server.
  3. Add the javascript and css file.

But after loading the page http://www.sybase-recovery.com/test-datatables/, the table is not paginated and it seems that DataTables are not running at all. Why?

Answers

  • allanallan Posts: 63,489Questions: 1Answers: 10,468 Site admin

    Your DataTables initialisation code isn't inside a script tag:

    So it just gets shown on the page:

    Put script tags around it. Also, use jQuery rather than $ here since something is running noConflict on your page.

    Allan

Sign In or Register to comment.