An excellent point, however hiding the options in a select won't do  
anything useful. They don't each get their own display property in CSS.

But you're right about using invoke. If this was a collection of  
checkboxes or radio buttons, then setting display like this would work  
really well and invoke would be the quickest way to go.


On Mar 19, 2009, at 8:17 AM, david wrote:

> Hi it,
> just one remark on the code show.
> Instead of using $$('select option').each(function(elem) { elem.hide
> (); });
> and create a closure, you should use:
> $$('select option').invoke('hide'); because the return of the $$
> function is an array and array are extended with the GREAT enumerable
> method.
> --
> david

You received this message because you are subscribed to the Google Groups 
"Prototype &" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to