Is there a way to programmatically click on a combobox item?

Posted by mrentropy on Stack Overflow See other posts from Stack Overflow or by mrentropy
Published on 2010-05-14T22:27:11Z Indexed on 2010/05/14 22:34 UTC
Read the original article Hit count: 99

Filed under:
|
|

Hi,

I've been trying experiments with the following, but so far to no avail:

sel = document.getElementById('myComboBox')
sel.selectedIndex = 1;
sel.options[1].selected = true;
sel[1].click();

Thanks for the help!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about select