Returns: Boolean
Description: Makes the element require a credit card number.
Return true if the value is a valid credit card number.
Works with text inputs.
Part of the additional-methods.js file
Note: The algorithm used can't verify the validity of the number – it is just an integrity check. As with any other clientside validation, you have to implement the same or better validation on the serverside.
Example:
Makes "field" required and credit card only.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
|