Hi,

For as long as I've been working with jQuery (about 1 year), find()
has always searched for descendants only. I think what you're looking
after is filter():

var pics2 = $('div.item2').find('img');
pics2.filter('.grey').hide(); // you also don't need to recreate the
jQuery object, you already have one

cheers,
- ricardo

On Dec 8, 5:45 am, "janis.zalitis" <[EMAIL PROTECTED]> wrote:
> Hey!
>
> I have a problem with find:
>
> It only appears to find "descendant" elements of a collection or
> element.
> I've been using JQuery for 3 years and unless memory fails me, find
> used to find stuff on the same level as well.
>
> I posted it as bug report herehttp://dev.jquery.com/ticket/3694
>
> And looking at the find example over athttp://visualjquery.com/it
> seems that it should select elements on the same level since the
> example basically selects spans using find and then selects those that
> have "t" letter in them, again, using find.

Reply via email to