Is there any way to catch a form's submit action before HTML5 validation steps in?
This is what I have tried:
HTML
<form method='post' >
<fieldset>
<input type='email' name='foo' required />
<input type='submit' />
</fieldset>
</form>
jQuery
$('form').submit(function() {
$('fieldset').addStyle('error');
return false;
})
But the submit is only triggered once the HTML5 validation passes.
novalidate.