By default, if a user enters a value in a field, the 'eager' validation kicks in. Is there any way to disable 'eager' validation before submit and then enable it after an invalid submit has happened?
I've used $.validator.setDefaults()
to initially set the onkeyup
and onfocusout
properties to false
.
In the invalidHandler
method I rerun the $.validator.setDefaults()
, setting onkeyup
and onfocusout
properties to true
.
No luck with this approach.
Basically, I only want the 'eager' validation to take place after the user tries to submit an invalid form.
Thanks for any help.