Link to home
Start Free TrialLog in
Avatar of VBpassion
VBpassion

asked on

Allow only english and arabic charachters in text box

Hello there
I'm developing a bi-lingual website and i have a form. My website is in english and arabic. In my form there are 5 textboxes. I want 3 text boxed to accept only english alphabets and others only arabic. This will help me to directly insert the data in the database table. So i english data will go to english field in my table and the arabic data will go to the arabic field in that table.

Does anybody know how to do that. SO basically, the english textbox should only accept english chars and arabic should only accept arabic...

Can anybody help??
Avatar of Mahdii7
Mahdii7
Flag of United States of America image

It is definitely possible with a bit of Javascript validation.

This may help you: http://www.codestyle.org/javascript/faq-HowTo.shtml

Cheers
ASKER CERTIFIED SOLUTION
Avatar of LordOfPorts
LordOfPorts
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of VBpassion
VBpassion

ASKER

Thankyou so much LORDOFTHEPORT,
I helped me and showed me exactly as I wanted.

Regards
Mohsin iqbal