Html5 form validation not working with iphone, android or safari

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

    Firefox and Opera both support HTML 5 and in particular form validation...

    I have just spent two days writing some new code only to realise IE and Safari don't yet implement HTML 5 validation...

    My choice is clear, either I recode using javascript (difficult as the form are dynamically created) or tell everyone to use Firefox or Opera, else the validation is not implemented...

    My choice... keep my current code and wait for the others to catch up...

    Firefox and IE10 support some of it.

    Opera and Chrome support all of it.

    Safari supports all of it too, but form validation is disabled by default.

    Update... Just come across a post that suggests Safari do not support form validation, no wonder I could not find anyway to turn it on?

提交回复
热议问题