How about

this.select('select').each(function(ss) { ss.getValue() == 0 &&
ss.disable(); });


On Aug 1, 7:10 pm, Martín Marqués <martin.marq...@gmail.com> wrote:
> El día 1 de agosto de 2011 14:06, Martín Marqués
> <martin.marq...@gmail.com> escribió:
>
> > 2011/8/1 T.J. Crowder <t...@crowdersoftware.com>:
> >> You can make it just selects like this:
>
> >>    if(selects[i].tagName.toUpperCase() === "SELECT" &&
> >> selects[i].getValue() == 0){
>
> > Shouldn't that be selects.nodeName.toUpperCase() (instead of tagName)?
>
> OK, found out that in my case, tagName and nodeName are the same.
>
> --
> Martín Marqués
> select 'martin.marques' || '@' || 'gmail.com'
> DBA, Programador, Administrador

-- 
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