ericelliott / h5Validate

An HTML5 form validation plugin for jQuery. Works on all major browsers, both new and old. Implements inline, realtime validation best practices (based on surveys and usability studies). Developed for production use in e-commerce. Currently in production with millions of users.
576 stars 125 forks source link

onsubmit is always executed. #59

Closed kapitancho closed 11 years ago

kapitancho commented 11 years ago

If I run this on chrome, I get the alert ONLY when there is a value in the required field.

If I use h5Validate, I always see the alert. That's not consistent. In my opinion, the alert message should be shown only if the form is valid (like it happens in Chrome)

ericelliott commented 11 years ago

If you run what? Please post a test case on jsfiddle.net

kapitancho commented 11 years ago

Just add onsubmit="alert(123)" in form1 here: https://github.com/dilvie/h5Validate/blob/master/test/index.html and you will see it.