jquery - contains filter value in 1st column of table only -


$('#maincontent_mytable tr:gt(0)').not(':contains('+ filterval + ')').hide(); 

i'm trying hide rows in table doesn't have filter value in it. working ok table contains multiple columns , doing search in entire table. if filter value shows in column 2 not hidden. want check in column 1. want hide entire row if doesn't contain value in column 1.

try:

$('#maincontent_mytable tr:gt(0)').each(function () {     $(this).find('td:eq(0)').not(':contains(' + filterval + ')').parent().hide(); }); 

Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -