I want to initialize two tables with the same parameters but with two different jsons. The tables must also be loaded on the same page.
How can I do? Thank you very much for helping!
Here is an example that might get you started:
Thanks for the reply.
I have already seen that page and partially solved my question. However, I can't load two databases because I don't know how to declare the instances.
One option might be to use HTML5 Attributes to set the ajax option.
Another option would be to use a variable that contains the Datatables configuration object. Individually init Datatables with the variable. But before initializing set the ajax option.
Or you could possibly use the ajax.url() API to change the URL of each table.
There are probably other ways to do this.
It looks like you're new here. If you want to get involved, click one of these buttons!
DataTables designed and created by SpryMedia Ltd.
SpryMedia Ltd is registered in Scotland, company no. SC456502.