On Jan 15, 7:25 pm, Jan Kassens <[email protected]> wrote:
> you could create a custom pseudo selector:
>
> Selectors.Pseudo.hidden = function(){
> return Element.getStyle(this, 'display') == 'none';
>
> };
One question, is that different than this?:
Selectors.Pseudo.hidden = function(){
return this.getStyle('display') == 'none';
};
> On Jan 14, 2009, at 17:06, Michal wrote:
>
>
>
> > The only way I can think of it a bit longer:
>
> > $$('li').filter(function(item) {return (item.getStyle('display') ==
> > 'none')});
>
> > But I would be interested to know if anyone has a shorter way.
>
> > Michal.
>
> > On Jan 14, 3:10 pm, electronbender <[email protected]> wrote:
> >> How do i find all li's that are hidden?
> >> $$('li[display=none]) or $$('li[style.display=none]) does not work..
>
> --
> Jan - MooTools comitter
> twitter/blog:http://kassens.net