input filter field already-filled through incoming URL
input filter field already-filled through incoming URL
Christian Bonato
Posts: 18Questions: 0Answers: 0
Hi Allan,
I would like to be able to load a page with results already filtered based on a var that I'm going to bring in through the URL, using PHP's $_GET[]...
Is it feasible ?
To load a Datatable already filtered, with the search string already in the input field ?
Thanks,
Christian
I would like to be able to load a page with results already filtered based on a var that I'm going to bring in through the URL, using PHP's $_GET[]...
Is it feasible ?
To load a Datatable already filtered, with the search string already in the input field ?
Thanks,
Christian
This discussion has been closed.
Replies
Yes you can use oSearch to apply an initial filter: http://datatables.net/usage/options#oSearch . Just put your GET variable into the sSearch property.
Allan
I almost forgot how complete was DataTables and how clear the online manual is.
I should have checked first.
Thanks for taking the time to reply.
Best regards,
Christian