dojox.validate.isValidCreditCardNumber
dojo.require("dojox.validate.creditCard");
defined in dojox/validate/creditCard.js
checks if value matches the pattern for that card or any card types if none is specified
parameter | type | description |
---|---|---|
value | String|Integer | Boolean CC #, white spaces and dashes are ignored |
ccType | String | Optional. one of the values in cardinfo -- if Omitted it it returns a | delimited string of matching card types, or false if no matches found |