kozEfx schrieb:
This post is about the Validation plugin (http://bassistance.de/jquery-
plugins/jquery-plugin-validation/).

It seems that validation occurs on all fields initially, pre-submit,
but not all show error state if field data is cleared.

Test case:
goto:  http://jquery.bassistance.de/validate/demo/milk/

Fill in "First Name" field, then tab to next field.
Fill in "Last Name" field, then tab to next field.
Username will auto-populate.

Now Shift-Tab back to "First Name" field, delete content, then tab to
next field.   --> checkbox remains
Delete content in "Last Name" field   --->  Error description replaces
checkbox.

So, why is it showing the error in Last Name but not First Name?  Both
fields are required.

This is one simple example of the inconsistency.  However on my form,
I've been able to get a few fields to throw an error, but those fields
aren't consistent.  Sometimes First Name does show an error if i
delete the content, sometimes not, sometimes it is the Last Name
field, or City field.

Just to reiterate:  This is all happening "Pre-Submit" state; once the
form is submitted all error checking works properly.

I'm going to look deeper into this problem, but I hope someone has
already solved it.
This is a design error. It works as intended, but the intention is flawed. Could you file a bug report with the above description? Any ideas on how to improve the behaviour are very welcome.

A bit of explanation about the current design is here: http://docs.jquery.com/Plugins/Validation#Validation_event
I hope that helps understanding it and finding ways to improve it.

Jörn

Reply via email to