Everyone knows that a credit card number is normally made up of 12-16 numbers.
In the example above, we load both French and Italian translations, and use Italian.
Another way to ensure that the data is correct is to provide three fields for the number, and only allow the number of characters for each field (3-3-4).
But it’s probably simpler for you and for your users to use just one field.
Parsley's default DOM API is Parsley adds many classes and elements in the DOM when it validates.
To validate a phone number, strip out anything that isn’t a number, and then check the length, as shown in the solution.