📜  html 表单拒绝默认下拉列表 - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:03.785000             🧑  作者: Mango

代码示例1
//To force form validation on a select input:
//you need to use the required attribute on your select form and
//set the value of the initial option to "".
//Notice that you have to set the value -""- as invalid