Formance.js – Library for formatting and validating form fields

  • Somewhat off topic, but I wish there was a credible site out there that reviewed these type of general libraries. There are hundreds of them out there and when I need to find one it usually comes with hours of research trying to decide on the right one to use. It would be great if there was a place to look up the general strengths and weaknesses of each without doing all the necessary leg work.

  • I wish they wouldn't show error prompts when the user has just started entering characters

  • If you're looking for a nice validation API that doesn't require jQuery, I've been working on one recently for forms: https://github.com/segmentio/validate

    I personally really dislike working with jQuery plugins, because their APIs tend to be very poorly thought out. And using strings as a way to call methods is generally unfortunate, especially when they are snake-cased like these ones.

  • For North American phone numbers, it's fairly common to input your phone number with the preceding country code of 1. It would be nice if the library accounted for that.

  • You should make these compatible with Parsley.js: http://parsleyjs.org/documentation.html

  • A few of them (phone number) break if you CMD-A to select all and start typing, to replace the entire value. It just deselects and appends rather than overwriting.

  • If I fill out the phone number all the way, then go back with the arrow keys and try to delete/change numbers, I get weird behavior

  • Great plugin!

    Is there something similar for AngularJS that supports input limiting and formatting?

  • aaannddnd it works in IE7! Beautiful. Thank you. Will be using this for sure!

  • I'm so going to test 4242 4242 4242 4242 in every shopping website now.

  • if it can't validate emails according to the RFC's don't include email "validation"

  • What about international numbers?