It seems with the launch of Chrome 10 stable yesterday, required form fields (required=”required”) are now being handled by Chrome. This is great, BUT now it is ignoring my custom validation script (jQuery). Anyone know of a way to force Chrome to ignore it’s built in validator, and use mine?
Thanks.
You can insert a
novalidateattribute inside the<form>tag. This will turn off the browser validation.Syntax:
<form method="post" action="/submit.php" novalidate><input type="text" name="first_name" required />
<button type="submit">Submit</submit>
</form>