开发者

jQuery search in fields with a specific td class

开发者 https://www.devze.com 2023-02-23 22:23 出处:网络
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.

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

精彩评论

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

关注公众号