好的......我有一个表单,允许用户填写地址等具体内容。最近我想改变'#34;州"字段到美国各州的下拉列表,而不是将其作为您可以键入的字段。
这就是我现在拥有的......
<div class="atl_form_row">
<div class="atl_left"><span class="mandatory"></span><label class="control-label atlFormLabel" for="Service State">Service State:</label></div>
<div class="atl_right">
<input type="text" placeholder="Service State:" id="ServiceState" name="ServiceState" class="service_request_txt" />
</div>
</div>
我试过把它变成这样的东西,但遗憾的是不行......
<div class="atl_form_row">
<div class="atl_left"><span class="mandatory"></span><label class="control-label atlFormLabel" for="Service State">Service State:</label></div>
<div class="atl_right">
<select id="GISState" name="GISState">
<option value="" disabled selected>Select State</option>
<option value="AL">AL</option>
<!-- more options here -->
<option value="WY">WY</option>
</select>
</div>
</div>
任何帮助将不胜感激!