/    Sign up×
Community /Pin to ProfileBookmark

Change List Menu Default Selection

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 [URL=http://www.thelcg.com/wwcbn/wwcbn1.htm]http://www.thelcg.com/wwcbn/wwcbn1.htm[/URL] Thanks for any advice.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@gil_davisOct 29.2003 — All you have to do is change the selectedIndex of the SELECT object.
document.formName.selectName.selectedIndex = whatever;
Copy linkTweet thisAlerts:
@akellerauthorOct 29.2003 — Thank you ?
×

Success!

Help @akeller spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...