omarshammas / jquery.formance

A jQuery library for formatting and validating form fields, based on Stripe's jQuery.payment library.
omarshammas.github.io/formancejs
Other
630 stars 105 forks source link

Set the pattern attribute, and other html attributes. #5

Open omarshammas opened 11 years ago

omarshammas commented 11 years ago

As per this wiki article for mobile recommendations.

When $('input.number').formance('format_number'); it should automatically set the pattern attribute and other best practices.