How to check if users submit Arabic words from a form?

Is there any reliable way to check if a user has entered Arabic words in a form and is trying to submit it? Can Javascript handle this? Or can only a script server, such as .NET, do this?

I think that if possible, the script should explicitly prevent the user from entering Arabic words in the form and show a pop-up warning.

Please share any examples if you have ideas on how to do this.

thank

+3
source share
2 answers

. JavaScript, , - . ( #.) , , JS- .

, [\u0600-\u06FF\u0750-\u077F] , Unicode "" / " ".

+9

API- Google Ajax . .

0

Source: https://habr.com/ru/post/1741704/


All Articles