Credit Card Pattern Matching

Share

popular-credit-cardsThis is a simple prototype that highlights the type of credit card number a user is entering based on the first n characters.

Try entering a few digits to see it in action, or play with the code on CodePen to see how it works!

Sample Numbers

5597502558419431
4485593130614027
342180025274694
6011463476949833

See the Pen Credit card input pattern matching by Jim Horn (@JDHorn) on CodePen.

Share

Leave a Reply

Your email address will not be published. Required fields are marked *