Alphanumeric Validation not working

esskay

Member
What I need is to ensure that the entered data is alphabet and numbers without any special characters...e.g.

1. The entered data cannot only be alphabets
2. The entered data cannot only be numbers
3. It must be combination of alphabets and numbers without any special character

Can you please give me code to make it work ?
 
Last edited:
Well, the alphanumeric validation does work, it just doesn't do exactly what you need, as it will allow all numbers or all letters.

You could do that with a regex validation:

Code:
/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{1,}$/

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top