How should i add multiple search inputs into the dable?
How should i add multiple search inputs into the dable?
Datatables provides by default only one search input in the table, and in the ajax request it has the key "sSearch".
I need 2 search inputs in my table , thus my users can search like when column a quauls sth AND column b equals sth;
does datatables support that? I read the options and apis but i couldn't find that.
i saw that in the searching ajax request,there is sSearch_1 to sSearch_6,does this mean datatables can support up to 6 search variables?
This question has accepted answers - jump to:
Answers
You can use my yadcf plugin for that purpose http://yadcf-showcase.appspot.com/DOM_source.html take a look at the various showcase pages with different setups...
@daniel_r
so sorry but i wasn't able to open the link u've given.T_T
@daniel_r also,does ur answer mean that datatables doesnt support my need and i have to use a plugin or develope sth myself?
thank u very much for ur help!: )
https://datatables.net/examples/api/multi_filter.html
@veraicon , here is the link to the root of the showcase
http://yadcf-showcase.appspot.com/
datatables DOES support all you need, under the hood I use the datatables API
thanks to tangerine and daniel_r.
great help