这样的代码该怎么写呢?
<form name="frm" method="post" aciton="a.asp">
<select name="select1">
<option value="1">A
<option value="2">B
</select>
<input type="text" Name="con">
<input type="submit" name="提交">
</form>
在我提交之前做一下验证:
当我在select中选的是A的话<input type="text" Name="con">可输入内容。
当我在select中选的是B的话<input type="text" Name="con">不可输入内容(无效)。