Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to change textbox input language in web application

Im workin on a web application , and I have a form on which I have a textbox that users must fill it using arabic language.
how can I control it using javascript ?
Changing the default language of the operting system to arabic will solve my problem.
How can i change the default language to arabic using javascript ???
and is it the best approch to do it??
Is their another method ?

like image 532
Grace Avatar asked Dec 09 '10 08:12

Grace


2 Answers

Refer to this question and it will solve your problem pal Arabic text box

EDIT: Change the code to this

$().ready(function () {
    $("input#NameTextBox").attr("lang", "fa");
});
like image 90
Jahan Zinedine Avatar answered Oct 16 '22 00:10

Jahan Zinedine


a better solution may be:

Farsi type java script code

like image 44
Ali.Rashidi Avatar answered Oct 15 '22 22:10

Ali.Rashidi