Bringing romance back .... to forms
Formance.js is a jQuery library for formatting and validating form fields, based on / inspired by Stripe's jQuery.payment library.
Client side validation is not sufficient in any project because the javascript can be bypassed and people can submit requests directly to the server. However, that doesn't mean client side validation should be forgotten. This library is for those who care about the user experience.
You can find a full demo [here] (http://omarshammas.github.io/formancejs).
Or you can run the demo locally
git clone git@github.com:omarshammas/jquery.formance.git
cd jquery.formance/demo
python -m SimpleHTTPServer
Open a browser and go to localhost:8000/formancejs.html
.
Read this wiki article on how to get started
- Credit Card CVC
- Credit Card Expiry
- Credit Card Number
- Date dd / mm / yyyy
- Date yyyy / mm / dd
- Email Address
- Number
- Ontario Driver's License Number
- Ontario Outdoors Card Number
- Ontario Photo Health Card Number
- Phone Number (US & Canada)
- Postal Code (Canada)
Please see the Formance Wiki for more information.
Contributions are more than welcome. Please read this to see how to contribute your own field. Together we can make this a solid library, and hopefully a friendlier web.
Please see LICENSE for licensing details.
Omar Shammas, @omarshammas, http://omarshammas.com and many other wonderful contributors.