Html5 form element "required" on iPad/iPhone doesn't work

SongBox picture SongBox · May 19, 2012 · Viewed 31.1k times · Source

iPad safari is supposed to be html5 compliant, but it seems that the required element doesn't work. Anyone know why, or have a decent workaround that doesn't require a ton of JavaScript?

My code

<input type=email class=input placeholder="Email" name="email" required>

Answer

Ian Devlin picture Ian Devlin · May 19, 2012

It's not supported in iOS yet: when can I use: required.