search hidden field with dropdown
search hidden field with dropdown
megadruck
Posts: 3Questions: 2Answers: 0
I have a hidden datafield like group_id, which contains null, 1 or 2
Therefor I would like to have a dropdown menue for an additional search. if "all" is selected the hidden field will be ignored. If "1" is selected, all data with "1" in the hidden field will be considered. The same with "2"
Can somebody tell me, how to get it working ?
This discussion has been closed.
Answers
My suggestion is to use the Search Plugin. In the search function you can check for "all" and if not checked then return rows with 1 or 0 as appropriate.
I put together this simplified example to help you get started:
http://live.datatables.net/xodekavo/1/edit
Kevin