JQuery, a new Selection using the results..
Is there a way to me do this?

    <img id="example" src="anything.jpg" title="something" class="abc" />
    
    $('.abc').each(function(){
    
       if( $('[src^=anything]')) == 'anything.jpg'){
         //do something
       }
    
       if( $('#example').size() > 0){
         //do other thing
       }
       
       if(___.)
    
    });

This is just an example, what I need is pretty more complex.. But I would like to know if there is a way to make other jQuery selector test in the result of a first selector.. since "find" will find the children of $(this).. and .parent() get alot of brothers..

See what I mean?
Do you have any idea?
JQuery, a new Selection using the results..
===

Is there a way to me do this?

    <img id="example" src="anything.jpg" title="something" class="abc" />
    
    $('.abc').each(function(){
    
       if( $('[src^=anything]')) == 'anything.jpg'){
         //do something
       }
    
       if( $('#example').size() > 0){
         //do other thing
       }
       
       if(___.)
    
    });

This is just an example, what I need is pretty more complex.. But I would like to know if there is a way to make other jQuery selector test in the result of a first selector.. since "find" will find the children of $(this).. and .parent() get alot of brothers..

See what I mean?
Do you have any idea?