jQuery Credit Card Dimmer

When shopping online, I’ve experienced a couple of checkout scenarios where as you type the credit card icons dimmed to show which kind of card it was.

The method is nice because you see at a glance what cards the merchant accepts and in a very minimal way feedback is given about the type of card you are using. Recently, I was requested for this feature on a project.

After quite a bit of searching with very little results, I decided to create my own.