1 Feb 2007 01:05
Re: Dynamic selects won't fire events in some cases
Stephen Gerstacker wrote: > I'm ripping my hair out this one. > > I have two select boxes. Both have an 'observe_field' on it. The first > select box, when changed, will clear the second select box and, if it > needs > to, adds new options to the second select box. The second select box, > when > changed, will grab a number from the database and put it in a text box. > > This all works great, except for the following circumstance. > > 1. The second select box is changed to the second option in the list, > The > text box is updated. > 2. The first select box is changed to another option, clearing the > second > select box. > 3. The first select box is changed to the first option it was on, > filling > the second select box with options, with the first option in the list > showing. > 4. The second select box is changed to the second option in the list. > > Nothing happens. > The 'observe_field' never fires. > > After that, if I pick different selections in the list, it works fine. > So(Continue reading)
RSS Feed