Be wary of using direct access to the childNodes array.  IE represents
all text nodes, even those that are just a newline character for your
HTML markup as an item in the childNodes array, so you're probably
referencing a text node instead of the select element you intended to.

I'd give the select element an id and reference them directly.

On Sep 19, 9:32 am, "Justin Perkins" <[EMAIL PROTECTED]> wrote:
> Why don't you use Prototype methods?
> $(field).select('select').each(function(control){
>   control.selectedIndex = 0;
> });
> -justin
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 [EMAIL PROTECTED]
For more options, visit this group at

Reply via email to