2012-03-19 153 views
0

我有picnet table filter安装及其工作!但我的桌子上有一个包含链接的列。默认过滤器只会过滤<a>中的文本,例如其中有26个。012xx可以通过任何方式让它过滤链接中的数据内容属性。所以我可以键入zshare.net而不是'26'来获取包含它的行来显示?如何使用jquery picnet表过滤器过滤html

如果没有这样的插件,我可以这样做。

<td><a rel="popover" data-content="10upload, 2shared, badongo, crocko, depositfiles, extabit, fileape, filedropper, filefactory, filesmonster, zshare.net" class="btn btn-mini listpop" data-original-title="Supported mirrors according to website">26</a></td> 

回答

0
$("#textbox").keydown(function(){ 
    var t=$(this).val(); 
    $("#table tr") .show(); 
    $("#table tr td a") .not("a[data-content *="+t+"]").parent().parent() .hide(); 
//parent().parent()= <tr> tag 
});