开发者

jQuery search in fields with a specific td class

My search currently searches through all the table fields - I would like it to only search the ones that have a td class of test.

I'm using

$('input#SearchBox').quicksearch('table#tablesorter-demo tbody tr');

This searches all the fields in the table, I have tried:

$('input#SearchBox').quicksearch('table#tablesorter-demo tbody tr td.test');

but this just stops the whol开发者_开发知识库e search from working.

I also tried:

'$('input#SearchBox').quicksearch('table#tablesorter-demo tbody tr', {'selector': 'td.test'})'

But this doesn't find anything.


I think this should help

$('#SearchBox').quicksearch('#tablesorter-demo tbody tr td .test');

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜