1
我使用colvis,多搜索在一起,但它也有一些問題,但..意外的結果一起
案例:
1.如果我取消「渲染引擎」,並使用多 - 搜索引擎版本(例如數據數據6或7),它不會提供任何數據。
2.多用於檢索算法CSS等級,它不會在搜索所有
我創建了這裏的jsfiddle http://jsfiddle.net/cyVjh/
腳本中使用
//Search
$("tfoot input").keyup(function() {
/* Filter on the column (the index) of this element */
oTable.fnFilter(this.value, $("tfoot input").index(this));
});
/*
* Support functions to provide a little bit of 'user friendlyness' to the textboxes in
* the footer
*/
$("tfoot input").each(function (i) {
asInitVals[i] = this.value;
});
$("tfoot input").focus(function() {
if (this.className == "search_init") {
this.className = "";
this.value = "";
}
});
$("tfoot input").blur(function (i) {
if (this.value == "") {
this.className = "search_init";
this.value = asInitVals[$("tfoot input").index(this)];
}
});