Top.Mail.Ru
? ?
Javascript's Journal
 
[Most Recent Entries] [Calendar View] [Friends View]

Friday, February 4th, 2005

Time Event
2:58p
Selection option in select menu
Hello,

Here is the situation. I have a selection box, of size 1.

<select name="options" size="1">
   <option value="opt1">Option One
   <option value="opt2">Option two
   <option value="opt3">Option three
</select>


What I'd like to do is have a link that selects one of those options for me. For instance, when a user would click on a regular hyperlink that reads "first option", I'd like the textbox to automatically select Option two.

I just don't have any idea how to change the selection in a selection box...

The specific thing I'm working on is http://pavel.lishin.org/bookmarks/ - ideally, I'd like to be able to click on +B to add bookmark, and have the menu automatically choose the correct folder, so the user doens't have to bother with doing it themselves.

<< Previous Day 2005/02/04
[Calendar]
Next Day >>
About LiveJournal.com
Image