How to change TextBox input language to Persian as you type in

前端 未结 1 465
既然无缘
既然无缘 2020-12-06 01:52

I am working on a website in which users should fill some fields in different languages. I don\'t want the users to change their writing language using Alt+Shift key combina

1条回答
  •  天命终不由人
    2020-12-06 02:16

    1- Download Farsi type java script file

    After you downloaded the file, attach it to the head section of your html page.

    
    
    
    
    

    Now all you have to do is to create a text box and set its Lang attribute to "fa-IR".

    
    

    or

    
    

    Load your page and it's done!

    0 讨论(0)
提交回复
热议问题