Reputation: 1516
I am using the jQuery.validate plugin for client side validation of forms using an error summary panel as opposed to each field having it's own error message, and it works great! Although it seems counter-intuitive to me, I have a request to not update the error summary as the fields are satisfied.
So for example...I go to a blank form hit submit but I missed 3 required fields, let's say first name, last name, phone number. The error summary at the top of the page reflects the error message for those three fields correctly. As soon as type the first letter in any of the fields the error message drops out of the summary panel causing the form to shift up. I'd like the messages to stay visible until the next submit. I've checked through the documentation but can't seem to find a way to do this.
By the way this is an asp.net webforms application.
Any help is appreciated!
Upvotes: 0
Views: 82
Reputation: 2377
The validation plugin has options to disable revalidation on keyup and focusout. These are documented here: http://jqueryvalidation.org/validate
You most probably want
$(".selector").validate({
onkeyup: false,
onfocusout: false
});
Upvotes: 1