Permalink
Browse files

Changed validateOnSubmit default to true; I'm pretty sure this is wha…

…t the original author intended with the "submit" setting.
  • Loading branch information...
opendining committed Nov 1, 2011
1 parent b0c1f17 commit f1f393fe2b89b0c8702628e152fe66491d178ab5
Showing with 1 addition and 2 deletions.
  1. +1 −2 jquery.h5validate.js
View
@@ -86,8 +86,7 @@
validCallback: function () {},
// When submitting, validate elements that haven't been validated yet?
- // Defaulting to false to keep historical behavior consistent
- validateOnSubmit: false,
+ validateOnSubmit: true,
// Elements to validate with allValid (only validating visible elements)
allValidSelectors: 'input:visible, textarea:visible, select:visible',

0 comments on commit f1f393f

Please sign in to comment.