JoeGeeky
JoeGeeky

Reputation: 3796

Instructing Google Chrome to stop client-side validation

Google Chrome appears to proactively enforce client-side validation. Here is an example of what I'm seeing:

enter image description here

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

Answers (2)

Ricardo Souza
Ricardo Souza

Reputation: 16456

You can use novalidate attribute: http://www.w3schools.com/html5/att_form_novalidate.asp

Upvotes: 1

Jukka K. Korpela
Jukka K. Korpela

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

Related Questions