Forums

validations from drop down

Lara_Shadow 22 Jul, 2010
Hello All,

As all the credit cards have different Regular expression. How can we use them.

I have a drop down for credit cards and below it a text box for card number.
How can i put different validations based upon the option selected.
GreyHead 26 Jul, 2010
Hi Lara_Shadow,

You'll need a JavaScript snippet to check the card type and then set the correct regexp to use in a test.

Or you can use a universal regexp.

Bob
This topic is locked and no more replies can be posted.