Reputation: 3796
Google Chrome appears to proactively enforce client-side validation. Here is an example of what I'm seeing:
In this case, I have no client-side validation scripts (yet) although I have set the pattern attribute with a regular expression. Is there a way to instruct Chrome (and possibly other browsers) to NOT volunteer validation services?
pattern="(44)?0?[1-9](0[0-9]{8})"
Upvotes: 0
Views: 937
Reputation: 16456
You can use novalidate
attribute: http://www.w3schools.com/html5/att_form_novalidate.asp
Upvotes: 1
Reputation: 201728
The pattern
attribute is meant to specify a rule to be applied by the browser, even when JavaScript is disabled. If you don’t want that, don’t use the attribute. If you want to remove the browser’s implementation of the checks when JavaScript is enabled, remove the attribute in your JavaScript code (possibly after storing its value so that you can construct a JavaScript regex from it).
Upvotes: 1