Changing the selection in a option list object - What is the function
I have tried to change the selection in my <SELECT> object in many ways. I have tried "document.FORM.SELECT.selectedIndex = *;" I have also tried "document.FORM.SELECT.options[*].selected = true;" which always gets me a options is not defined message.
If anyone knows how to correctly write the function the will change the current selection within a <SELECT> object, please advise.
ipd posted this at 19:28 — 28th September 1999.
They have: 7 posts
Joined: Aug 1999
I would like for a button, or mapped image ~ when clicked to change
the current selection in my dropdown menu/list.
John Pollock posted this at 21:06 — 28th September 1999.
He has: 628 posts
Joined: Mar 1999
Hmmm...not picking at you just curious: You don't want the viewer to make the choice? I'm just not sure what you are trying?
Anonymous posted this at 20:53 — 1st October 1999.
They have: 5,633 posts
Joined: Jan 1970
document.FORM.SELECT.options[0].selected = true;
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.