Search code examples
htmlformsmobile-safarirequired

HTML form "required" attribute on Mobile Safari doesn't work


Mobile Safari on iPad is supposed to be HTML5-compliant, but it seems that the required attribute 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>

Solution

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