Try setting the defaultSelected property as well, that might be getting in the way of your select "noticing" that it's been changed.
yourSelect.options.selectedIndex = 0; yourSelect.options[0].defaultSelected = true; Walter On Dec 10, 2009, at 12:15 PM, Ruben. D. wrote: > I think that I've not explained my problem right(due to idiom > limitations). > > My problem is simple: > > When I reset the select element the onchange element doesn't fire, > the workflow is this: > > I've a select element with 3 elements: -Select-, Red, Yellow > > 1) When the page load '-Select-' option is the default > 2) I select "Red", onchange works fine here > 3) After that I reset the select(with selectedIndex = 0 or writing > the property) > 4) Now the option selected is '-Select-' > 5) I select 'Red' again, the onchange event doesn't fire > 6) when I select 'Yellow' in the previous step the onchange event > works fine > > Thanks. > -- > Rubén Dávila Santos. > http://rubenonrails.com > > -- > > 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 > . -- 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-scriptacul...@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.