2016-08-09 74 views
0

我的html 5验证在i-phone上无法使用,请提出建议。 我在输入字段中使用了必填项。 html5验证无法在iphone上工作

<input type="text" class="form-control" id="estimated_budget" placeholder="Estimated Budget" name="estimated_budget" required = "true"> 

回答

1

试试这个

<input type="text" class="form-control" id="estimated_budget" placeholder="Estimated Budget" name="estimated_budget" required = "required"> 
+0

指定的是:''没有值 https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-required –

+0

是的,但我们可以指定带或不带值。 –