The capitalization is wrong, and you have an extra argument. Do this instead: For future reference, there aren’t any jQuery methods that begin with a capital letter. They all take the same form as this one, starting with a lower case, and the first letter of each joined “word” is upper case.

How to validate a credit card number

I hope the following two links help to solve your problem. FYI, various credit cards are available in the world. So, your thought is wrong. Credit cards have some format. See the following links. The first one is pure JavaScript and the second one is using jQuery. JavaScript Credit Card Validation Function jQuery-Validation-Extension Demo: