I have 3 elements on a form I wish to validate. All three elements are required, but one is an email so I am applying the email rule to it as well. However, when the form is submitted, the JS error regarding the email formatting is only returned if all three fields are populated. If I submit an invalid email address with the 2 other required elements empty, only errors for the missing elements are displayed.
Is this normal behaviour or am I doing something obviously wrong? I would expect an error to be displayed for the first level of testing an element failed at.
posted 11 years ago