【发布时间】:2014-12-10 21:40:55
【问题描述】:
在带有“禁用”选择的下拉表单元素上使用“必需”在 Firefox 中可以防止用户在未从下拉列表中选择某些内容的情况下提交表单,但在 Chrome 中则不行。你能帮忙吗?
<select id="topic" class="form-control" required="required">
<option disabled selected>select genre</option>
<option>All genres (whatever works)</option>
<option>boogers</option>
<option>cheese</option>
<option>dumplings</option>
</select>
【问题讨论】:
标签: html google-chrome