problem with selector

problem with selector

hello

i m using jquery to do this:

  1. jQuery('tr:has(.filterline) .jquery-selectbox-moreButton').each(function(){
                this.hide();
     });


and the problem is that hide all on 'tr:has(.filterline) and hide all element that have class .jquery-selectbox-moreButton

i want to have only tr:has(.filterline) with child .jquery-selectbox-moreButton to hide element
i try something like this :

  1. jQuery('tr:has(.filterline) > .jquery-selectbox-moreButton').each(function(){
                this.hide();
     });

  2. or
  3. jQuery('tr:has(.filterline) ~ .jquery-selectbox-moreButton').each(function(){
                this.hide();
     });

but its not working...

any idea?

thanks a lot