victorjonsson / jQuery-Form-Validator

[DISCONTINUED] jQuery plugin that makes it easy to validate user input while keeping your HTML markup clean from javascript code.
972 stars 476 forks source link

Way to tell if certain credit card is used #616

Open Dtrav opened 7 years ago

Dtrav commented 7 years ago

Is it possible to add an option where if the plug in recognizes an Amex card, an Amex class can be added? Currently AMEX uses a 4 digit cvv which isn't recognized by the plugin. I can easily change this by submitting a custom validation with a regular expression that allows 3 or 4 numbers, but I would like something to allow me so if the user entered an amex credit card and submitted 3 numbers in the cvv is would throw the error class and vice versa if the user entered a VISA card and submitted 4 numbers. Also I could let the user knows it validates as that specific card type. Thanks!