Credit Card Pattern Matching

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


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

Leave a Reply

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