jQuery Credit Card Validator
jQuery Credit Card Validator detects and validates credit card numbers. It’ll tell you the detected credit card type and whether the number length and Luhn checksum are valid for the type of card.
npm i jquery-creditcardvalidator
Download the latest jquery.creditCardValidator.js.
Do not use any branches other than master. Branches starting with
release/ are development branches and they will most likely be broken.
How to use
Run validation every time a field value changes:
Run validation once:
const result = ;if resultvalid;else;
For full documentation see the jQuery Credit Card Validator website.