【发布时间】:2013-01-16 19:58:57
【问题描述】:
好吧,我有一个非常标准的动态数据表,但我似乎无法让搜索框根据输入或选择框的值进行过滤。
oTable = $('#itemTable').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"sDom": '<""f>t<"F"lp>',
"aoColumns": [
{ "sWidth": "45px", "bSearchable": false},
{ "sWidth": "150px"}, // <input type="text">
{ "sWidth": "150px"}, // <select>
{ "sWidth": "150px"}, // <select>
{ "sWidth": "125px"}, // <input type="text">
{ "sWidth": "75px", "bSearchable": false},
{ "sWidth": "75px", "bSearchable": false},
{ "sWidth": "75px", "bSearchable": false},
{ "sWidth": "75px", "bSearchable": false},
{ "sWidth": "75px", "bSearchable": false}
],
如何获取数据表以根据文本框的值和/或选择框的当前选定值过滤搜索结果?
我找到了这个jQuery DataTables - custom filter for column that contains text field,但我似乎无法让它为我工作
【问题讨论】:
-
我刚刚意识到我需要使用 mDataProp ......这个问题在我处理这个问题时被搁置......
标签: jquery datatables