Hi,
If I have a drop down menu...
<form name="form" method="post" action="go.asp">
<select name="UserID">
<option value="">Please Selectio</option>
<option value="1">Tom</option>
<option value="2">Dave</option>
<option value="3">Pete</option>
</select>
...and a submit button....
<input name="submitbutton" type="submit" value="Go">
</form>
...how can I disable the submit button if UserID is "" and enable it if it's 1, 2 or 3?
I guess I will have a function that is called using onChange and I suppose it will have something like form.submitbutton.disabled=true and form.submitbutton.disabled=false but beyond that I don't really know what I'm doing.
Thanks very much
Ed
If I have a drop down menu...
<form name="form" method="post" action="go.asp">
<select name="UserID">
<option value="">Please Selectio</option>
<option value="1">Tom</option>
<option value="2">Dave</option>
<option value="3">Pete</option>
</select>
...and a submit button....
<input name="submitbutton" type="submit" value="Go">
</form>
...how can I disable the submit button if UserID is "" and enable it if it's 1, 2 or 3?
I guess I will have a function that is called using onChange and I suppose it will have something like form.submitbutton.disabled=true and form.submitbutton.disabled=false but beyond that I don't really know what I'm doing.
Thanks very much
Ed