jondavidjohn / payform

:credit_card: A library for building credit card forms, validating inputs, and formatting numbers.
https://jondavidjohn.github.io/payform/
Other
427 stars 81 forks source link

Using 2 (Month & year) <select> drop-down for expiry date. #14

Closed ImranBug closed 9 years ago

ImranBug commented 9 years ago

This is not a bug and more like a question/request. In examples you are using a single expiry text field but is there a way to use select tag instead?

ImranBug commented 9 years ago

Never mind it was all there in the documentation.

payform.validateCardExpiry('05', '20'); //=> true
payform.validateCardExpiry('05', '2015'); //=> true
payform.validateCardExpiry('05', '05'); //=> false