Html5 form validation not working with iphone, android or safari

后端 未结 5 1638
执念已碎
执念已碎 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:05

    If you're using jQuery, you could take a look at the h5Validate plugin. This adds cross-browser support for form validations down to IE6. According to the project's website:

    • Regularly tested on 13 different browsers, IE6 - IE9, FireFox, Chrome, iPhone, and Android.

    • Implements best practices based on 1,000 user survey, several usability studies, and the behavior of millions of users in live production environments.

    Supported Platforms:

    • Desktop: IE 9, 8, 7, 6, Chrome, Firefox, Safari, and Opera. Tested on Windows 7 and Mac.

    • Mobile: iPhone, Android, Palm WebOS

提交回复
热议问题