Dynamically Load Joined Table
Dynamically Load Joined Table
3phi
Posts: 5Questions: 1Answers: 0
Take this example: https://editor.datatables.net/examples/inline-editing/join.html
I'd like to add a drop list for "Countries" outside of the table and when the user selects a country the Location drop-list inside the table automatically reloads itself to only display the list of cities for the selected country.
I know how to load the initial list of cities via ajax but how do I update the Location drop-list once the table is created?
Thanks,
PT
Replies
Hi PT,
Use
ajax.data
to send the data to the server (used by the server to filter to the required country) andajax.reload()
to trigger the reload - e.g.:Allan