|
-
Oct 2nd, 2000, 04:07 PM
#1
Hi there I need to be able to find out which option has been selected in a Select tag within my page. I want to be able to do that dynamically. Here's what it should look like:
<html>
<head>
<script language=vbscript>
SUB WhichOption()
IF SelectObject.option(selectObject.selectedindex).value = "Training" THEN
{do something}
Else
{do something else}
END SUB
</script>
</head>
<select name="Event" onchange=WhichOption() size="1">
<option selected value="Meeting">Meeting</option>
<option value="Training">Training</option>
</select>
</html>
My only problem at this point is to determine the correct syntax to be used in the IF statement of my vbscript function. If you know the correct syntax please forward your suggestions. Thanks a lot for your time.
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
|