|
-
Nov 21st, 2000, 03:26 PM
#1
Thread Starter
Junior Member
I am trying to grab the value of the selected item in a drop-down(select) box. I have tried select1.selecteditem.value, but that is not a property. Any help?
-
Nov 21st, 2000, 04:00 PM
#2
If you have a SELECT setup with VALUE attributes, ex:
<SELECT NAME="selWhatever">
<OPTION VALUE="Red">Red
<OPTION VALUE="Green">Green
<OPTION VALUE="Blue">Blue
</SELECT>
...then you can get the value of the select with selectName.value, for example:
alert(selWhatever.value)
Hope this helps,
Paul
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|