I'm familiar with:
- Stripe jQuery.payment.js (formance is based on this project, extended beyond payment forms) https://github.com/stripe/jquery.payment
- Masked Input (good for basic formatting, and does not include validating) https://github.com/digitalBush/jquery.maskedinput
- Validate.js (does not include formatting) http://rickharrison.github.io/validate.js/
EDIT: found it - http://jster.net/
There is also a really simple guideline to publish your plugin there: http://plugins.jquery.com/docs/publish/
Currently, there is no way to review which plugin is better. But at least it shows the number of watchers for each plugin, which can be an okay indicator whether a plugin is good or bad.
A good curation/ranking site for all of the various JS libs would be helpful.
Its wasteful for every developer to read the code of numerous JS libs just to figure out which one(s) was(were) written well.
Those error prompts are not part of the library. In the demo, I setup some event listeners that get triggered on 'keyup change blur'. In the callback function, the value of the input field is validated and a message is shown to the user.
Maybe for your needs, it can be triggered on 'blur'. Or you even create your own setup. Formance.js simply provides the formatters and validators, and you can plug and play however you see fit.
I just listen for a blur event and then display errors until it's actually valid.
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.
Regarding Formance, it uses jQuery to setup the necessary event listeners to provide the field formatting.
On the other note snake-cased is a preference, I would happily provide camelCased if there is demand.
Is there something similar for AngularJS that supports input limiting and formatting?
https://github.com/omarshammas/jquery.formance/wiki/Contribu...