/    Sign up×
Community /Pin to ProfileBookmark

drop down list help needed

Ok, I’m sure this is fairly simple.
I have 3 links and 3 items in a drop down list.
I need the list to change focus to a different item by which link is clicked. I attached the html.
Please help.
Thanks,
TODD

[upl-file uuid=e9467038-a634-4bd3-85d5-935612fef611 size=239B]form.txt[/upl-file]

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@fredmvJan 27.2004 — Welcome to the forums.<script type="text/javascript">
//<![CDATA[
function set(what)
{
document.forms[0][0].selectedIndex = what;
}
//]]>
</script>
<form action="#">
<div>
<select>
<option>Link 1</option>
<option>Link 2</option>
<option>Link 3</option>
</select>
<ul>
<li><a href="#" onclick="set(0);">Link 1</a></li>
<li><a href="#" onclick="set(1);">Link 2</a></li>
<li><a href="#" onclick="set(2);">Link 3</a></li>
</ul>
</div>
</form>
×

Success!

Help @voiton 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.4,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...