Choosing option to select with javascript

ancom

New Member
Hello everyone!
Could you help me with this:
I have a form like this:
<form>
<select name="choice">
<option value="first">first</option>
<option value="second" >second</option>
<option value="third">third</option>
</select>
</form>
Depending on the link on the other page the user clicks I want to show the same form, but with different option selected.
E.g. if he/she clicks "first" link, he/she gets
<form>
<select name="choice">
<option value="first" selected="selected">first</option>
<option value="second" >second</option>
<option value="third">third</option>
</select>
</form>
Can this be done with javascript only? And how? I am a javascript noob:eek:
 
Top