I am trying to experiment with the following, but no avail ever:
Sel = document.getElementById ('myComboBox') sel.selectedIndex = 1; Sel.options [1]. Selected = true; Sel [1] .click ();
Thanks for the help!
Wait how you write:
sel.options [1] . Selected = true;
and then in the very next line
sel [1]. Click ();
?? Element is not an array and it can not be considered as one.
The "click" event is not the best thing to handle in any way. Perhaps the "change" event on the selected element would only be more reliable.
Comments
Post a Comment