A simple form input validator for credit card number field. jQuery credit card validator can help you to detect the credit card type by the numbers length and Luhn algorithm.
Life time free and fully open source, support all the major and popular credit card brands such as Discover Card, Visa, Mastercard, Maustro, American Express, Diners Club and more.
Just attach validateCreditCard() to which input field you want it to get validate and there is 3 properties you can pass to the function, ‘card_type’, ‘length_valid’, ‘luhn_valid’ and one optional option you can set, ‘accept’. Read the documentation for details, very easy.
Thanks Pawel Decowski who wrote this small jQuery plugin for credit card validation use.
jQuery Credit Card Validator is released under MIT license.
Source: Read more about jQuery Credit Card Validator