<form id="customerForm"> <label> First Name: <input id="firstName" required /> </label> <label> Social Security Number: <input id="ssn" required pattern="^d{3}-d{2}-d{4}$" title="Expected pattern is ###-##-####" /> </label> <input type="submit" /> </form>
When I try to execute this document in Chrome, it accepts the conditions and shows an error, as expected.
But when I try to execute this document in Safari, it does not detect an error.
html5 google-chrome safari required
Amir Bennasr Sep 20 '15 at 21:48 2015-09-20 21:48
source share