は、私が唯一のこれまでのクライアント側を使用していると、このコード:
$("#browse_1_div thead input").keyup(function() {
/* Filter on the column (the index) of this element */
oTable.fnFilter(this.value, $("thead input").index(this));
});
/*
* Support functions to provide a little bit of 'user friendlyness' to the textboxes in
* the footer
*/
$("#browse_1_div thead input").each(function (i) {
asInitVals[i] = this.value;
});
$("#browse_1_div thead input").focus(function() {
if (this.className == "search_init_1")
{
this.className = "";
this.value = "";
}
});
$("#browse_1_div thead input").blur(function (i) {
if (this.value == "")
{
this.className = "search_init_1";
this.value = asInitVals[$("#browse_1_div thead input").index(this)];
}
});
私はcolumnFilterプラグインにこれを比較すると、これは仕事の非常に多くのように思える... – Danny
それはかなり古くからのコードの平和ですが、それは今のように機能します。 –