In case you want to exclude them, you could use something like:

$$('selector').filter(function(el){
    return !(el.hasClass('parent') && el.hasClass('active'));
});

http://mootools.net/docs/core/Element/Element#Elements:filter

On Sat, Feb 12, 2011 at 7:43 PM, Sanford Whiteman <
[email protected]> wrote:

> > In [var list = $$('ul.menu li')] i want to sort out elements which has
> > class 'parent' AND ALSO 'active'.
>
> Sort  "out"  meaning exclude those elements from the loop?  Or do your
> work on those elements?  That's not the clearest phrasing.  :)
>
> To include, only need CSS (not JS- nor Moo-specific):
>
>  LI.parent.active
>
> -- S.
>
>

Reply via email to