2016-08-09 76 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

是的,但我們可以指定帶或不帶值。 –