Html5 form validation not working with iphone, android or safari

后端 未结 5 1633
执念已碎
执念已碎 2021-02-08 02:34

I am trying to implement html5 form validation for my web app but it\'s not working with safari 5.0.1 , iphone3 or android2. Is the form input attribute required, pattern or any

5条回答
  •  情书的邮戳
    2021-02-08 03:00

    I've hit the same issue with a job search application I'm in the process of building. The h5Validate plugin solved this exact problem. It plugins in the HTML5 validation holes for many browsers and devices:

    • Desktop: IE 9, 8, 7, 6, Chrome, Firefox, Safari, and Opera. Tested on Windows 7 and Mac.
    • Mobile: iPhone, Android, Palm WebOS

    If you've ever used the jQuery validation plugin, it's very similar. Think of it as an extension for HTML5 forms.

提交回复
热议问题