Hi, I have a pretty simple question but I'm not sure how simple the solution is.
I have a drop down menu that looks like this.
<html>
<head>
<SCRIPT LANGUAGE="VBScript">
Function Event
If document.form.ddmenu.SelectedIndex = 2 Then
document.write("<input type=""checkbox"" name=""checkbox"" value=""ON"" disabled>Check Here"
End If
End Function
</SCRIPT>
</head>
<body>
<form name="form">
<select size="1" name="ddmenu" OnChange="Event">
<option>Option 0</option>
<option>Option 1</option>
<option>Option 2</option>
</select>
<input type="checkbox" name="checkbox">Check Here
</body>
</html>
Basically, when a user opens this page there will be a drop down menu with three options and a checkbox next to it. My goal is to simply grey the checkbox out(disable) when option 2 is selected. And then when any other option is chosen it becomes ungreyed. However, with my limited vbscript knowledge I can only accomplish this by reloading the page or by using frames. Neither of those options is really desirable. Please help if you can! Thanks!
-Nerus
I have a drop down menu that looks like this.
<html>
<head>
<SCRIPT LANGUAGE="VBScript">
Function Event
If document.form.ddmenu.SelectedIndex = 2 Then
document.write("<input type=""checkbox"" name=""checkbox"" value=""ON"" disabled>Check Here"
End If
End Function
</SCRIPT>
</head>
<body>
<form name="form">
<select size="1" name="ddmenu" OnChange="Event">
<option>Option 0</option>
<option>Option 1</option>
<option>Option 2</option>
</select>
<input type="checkbox" name="checkbox">Check Here
</body>
</html>
Basically, when a user opens this page there will be a drop down menu with three options and a checkbox next to it. My goal is to simply grey the checkbox out(disable) when option 2 is selected. And then when any other option is chosen it becomes ungreyed. However, with my limited vbscript knowledge I can only accomplish this by reloading the page or by using frames. Neither of those options is really desirable. Please help if you can! Thanks!
-Nerus