Hi all,
I have a select box:
<form name="frmname">
<select name="strselect">
<option value="yes">yes
<option value="no">no
</select>
<input type="text" name="stranswer">
</form>
I need to write a javascript to check that:
if users select "yes" in 'strselect' then, they have to provide an answer in "stranswer". How can I force the form to not submit with alert/message box and focus().
Thanks
I have a select box:
<form name="frmname">
<select name="strselect">
<option value="yes">yes
<option value="no">no
</select>
<input type="text" name="stranswer">
</form>
I need to write a javascript to check that:
if users select "yes" in 'strselect' then, they have to provide an answer in "stranswer". How can I force the form to not submit with alert/message box and focus().
Thanks