Can someone explain to me how we can validate a credit card number?
We currently have a script that accepts numbers like this
4444111122223333
However, I want the credit card validation to allow for credit card numbers in this format (with white spaces.)
4444 1111 2222 3333
Is there a way to achieve this using JavaScript?
Thank you
A