Change data source dynamically
Change data source dynamically

Good afternoon,
New with Datatables and Jquery, so maybe my question is naive. Here I go: I would like to have a <select> which allows me to select the source database table (and so the columns) showed in the table.
Any advice or suggestion?
Kind regards,
David
This discussion has been closed.
Answers
You would need to use ajax sourced data to get the table's data - examples here. You could either hard-code which tables are on the server if they're static, or you could issue another ajax request to a different script get a list of tables to populate the
select
element.Colin
Hi Colin,
Thanks for your post. I will check it!
Kind regards!