[英]Input Required Doesn't work on Safari on iPad 3
I have an email input 我有电子邮件输入
<div class="mb10">
<label class="control-label">Email</label>
<input id="email" type="email" class="form-control" placeholder='Email' name="email" required >
</div>
It worked on most of the broswer except on Safari on iPad 3. 它适用于大多数浏览器,但iPad 3上的Safari除外。
Is it because of the HTML5 ? 是因为HTML5吗? Should I use JS in stead ?
我应该代替使用JS吗?
$("[name='email']").required = true;
How do I solve this issue ? 我该如何解决这个问题?
You are correct in saying that the iPad 3 doesn't support HTML 5. JavaScript is best to stick with for form control because there are still some browsers or they're that don't support form control. 您可以正确地说iPad 3不支持HTML5。JavaScript最好用于表单控制,因为仍然有一些浏览器或者它们不支持表单控制。 Also, using JavaScript, you can make yourself custom messages and actions if something hasn't been completed.
另外,使用JavaScript,如果尚未完成某些操作,则可以使自己定制消息和操作。 Take a look at this link for more info on what does and doesn't work: http://mobilehtml5.org/
请查看此链接,以了解有关什么有效和无效的更多信息: http : //mobilehtml5.org/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.