I have a combobox which needs to call a function f(combobox.value) during its onChange event. Currently though, combobox.value appears not to change before the onChange event, and so the function receives the wrong (last) value.
Note - the actual text in the text field of the combobox *has* changed to the new value before the onChange event occurs.
Any ideas why this might be?
Edit - Also the problem doesn't happen when selecting with the mouse, only when using the up and down arrow keys to move through the list.
Note - the actual text in the text field of the combobox *has* changed to the new value before the onChange event occurs.
Any ideas why this might be?
Edit - Also the problem doesn't happen when selecting with the mouse, only when using the up and down arrow keys to move through the list.
Last edited: