[jQuery] Plugin: Validation: Error message order
Is there a way to dictate order of the error message output when using
the Validation plugin (http://docs.jquery.com/Plugins/Validation)? Or
to keep the error message listing when put into a single error
container in the same order as the form elements appear in the
document?
I am noticing that the current behavior yields a list of error
messages grouped by input type. For example, I have an address form
where I have first name, last name, address 1, address 2, city, state,
and zip. Let's say that all fields, except address 2 are required. All
fields are <input type=text/>, but state is a <select/>. Because these
elements are different, I get errors for all the text fields first,
then the select box, which does not follow form order.
I am trying to find a solution without having to write out individual
checks in the order I want for every form field.