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.

Walter

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 & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to