How do I dynamically add datatables from javascript and bind it to a ajax source
How do I dynamically add datatables from javascript and bind it to a ajax source

Is it possible to add unknown number (based off some search criteria) of datatables on the page. Each datatable would be calling a slightly different ajax api endpoint. The datatables may between 5 to 10 on a page. But the count is not decided until the user selects the options on the page.
This discussion has been closed.
Answers
Yes its possible. You will need to add the
table
tags. Here is an example of one way to support multiple Datatables on a page.https://datatables.net/examples/basic_init/multiple_tables.html
Kevin