I have this form that has a validation JQuery function, I have a problem with the telephone field, all I want is for the users to enter numbers only ... Its working great on the English form, but on the Arabic form, if I enter the numbers using the Arabic language the form won't submit. Anyone knows what is the regular expression for the Arabic numbers ??
相关问题
- Views base64 encoded blob in HTML with PHP
- How to fix IE ClearType + jQuery opacity problem i
- jQuery add and remove delay
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
You can use
[^[:digit:]]
.This will return any digit no matter which language including mixed languages
Try this one:
Example:
This is likely the result of unicode vs. ASCII - the regular expression should be trivial otherwise.