如果上面的选项字段是下面的州 DE jsfiddle 代码,想检查驾驶执照是否正好是 6 个数字
http://jsfiddle.net/THKez/1/
<form name="clientdetails_form" id="clientdetails_form" method="POST" action="xxxx.php">
<p>
<label for="state">State</label>
<select type="text" name="state" >
<option value="NY">NY</option>
<option value="DE">DE</option></select>
</p>
<p>
<label for="LicenseN"><em>*</em>License #</label>
<input id="ClientLicensenNum" name="ClientLicensenNum" type="text" value="" >
</p>
<input type="submit" value="submit" >
</form>
谢谢