Why DataTables does not work for my case?
Why DataTables does not work for my case?
Hi,
In my WordPress site, I do as follows:
- Create a test page. Then insert a table based on the https://datatables.net/manual/installation
- Download datatable files and then upload them to my server.
- 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
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 runningnoConflict
on your page.Allan