Hi,
> > search for classes: $('.myclass',$('#commonAncestor')[0]).
>
> Thats actually the same as:
> $('#commonAncestor .myclass')
For that example that ist true, but you might have cached your context:
var mycontext = $('#commonAncestor')[0];
$('.menuitems',mycontext).hide();
$('.visible',mycontext).show();
$('.doSomethingWithMe',mycontext).each(function() {...});
Christof
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
