Click to See Complete Forum and Search --> : Change List Menu Default Selection


akeller
10-29-2003, 11:01 AM
Hi,

I was wondering if there was a way to change the selected value of a drop down list menu. What I have is an interface that is supposed to resemble an old tv. I have a knob that one clicks on to swap page content. Although cool it wasnt very intuitive so I switch to using a dorp down menu, but I want to still have the option of using the knob instead. What I need to have happen is for the selection of the drop down menu change to reflect the selection made by clicking on the knob. I'll have an example of what I'm working on at http://www.thelcg.com/wwcbn/wwcbn1.htm Thanks for any advice.

gil davis
10-29-2003, 11:35 AM
All you have to do is change the selectedIndex of the SELECT object.
document.formName.selectName.selectedIndex = whatever;

akeller
10-29-2003, 11:52 AM
Thank you :)