I've a DataTables table that displays information from a MySQL database. I'm trying to create drop-down filters, <select>
, like the ones used here. I know that the server-side tables can't use that precise example, but I'm not sure how to change it to make it work with a server-side database table.
How would I create drop-down menus, populated with information from the table/database, to filter a DataTables table?
EDIT: The server side is in PHP. I tried to query the database and create a separate menu with PHP and send the JSON-encoded information into select menus.