Cod*_*gry 5 javascript jquery datacolumn jquery-datatables
我正在使用JQuery-DataTables-ColumnFilter插件.我有两个表,当我试图在第一个表上过滤数据时,它正在另一个表中搜索(#example1)而不是(#example
)
$(document).ready(function(){
$('#example').dataTable()
.columnFilter({
aoColumns: [ {type: "text"},
{ type: "text" },
{ type: "text" },
{ type: "number" },
{type: "text"},
{type: "text"},
{type: "text"},
{type: "text"},
{type: "text"},
{type: "text"},
{ type: "select", values: [ 'A', 'C', 'U', 'X'] }
]
});
$('#example1').dataTable()
.columnFilter({
aoColumns: [ {type: "text"},
{ type: "text" },
{ type: "text" },
{ type: "number" },
{type: "text"},
{type: "text"},
{type: "text"},
{type: "text"},
{type: "text"},
{type: "text"},
{ type: "select", values: [ 'A', 'C', 'U', 'X'] }
]
});
});
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
329 次 |
| 最近记录: |