rickharrison / validate.js

Lightweight JavaScript form validation library inspired by CodeIgniter.
http://rickharrison.github.io/validate.js
Other
2.56k stars 406 forks source link

allow custom error messages on per-input basis #174

Open justin-hackin opened 8 years ago

justin-hackin commented 8 years ago

i.e.

       {
          name: 'exp-month',
          customError: "Please enter a valid month number (1-12)",
          display: 'Credit card expiry month',
          rules: 'required|greater_than[0]|less_than[13]'
      },
rickharrison commented 8 years ago

Yes, I am open to this. A pull request would be greatly appreciated!