Re: And my other question (complicated?)
- Posted by Matthew Lewis <MatthewL at KAPCOUSA.COM> Aug 29, 2000
- 424 views
> -----Original Message----- > From: LEVIATHAN > > Okay, I've got a DropDownList, but at onChange, I want it to save > the variables in the form from the index number selected before the > newly selected one. > > Now, as far as I can see, that'll be very complicated, if not > impossible. > It's not real clear what you're asking, but let me take a shot: The dropdownlist is on item x. The user selects item y from the dropdownlist. You'd like to save that item x was selected, and item y is now selected? This shouldn't be too difficult. Just use an integer, last_selected, or whatever, to keep track of the current selection. Then, when you get the onChange event, you can look at that to see what the last selection was, and look at the control itself for the current. Once you've done your business, save the current selection back into last_selected. Matt