Javascript options menu question.

Status
Not open for further replies.

Strider

Ars Scholae Palatinae
1,490
I know this is a stupidly simple question, but how do I reference a selected item in an options menu? I am really sorry for even asking this but I have not messed with Javascript in a while.

What I want to do is something like this:

code:<HR>
Code:
var bob = document.form.listname.options.selected;

But that cannot be it because I keep getting an undefined value for bob. Thanks all...

Strid...
 
Status
Not open for further replies.