Click here to Skip to main content
Click here to Skip to main content

Arabic Textbox Using Unicode Characters

By , 2 May 2013
 

Sample Image

Introduction

Arabic text box using simple JavaScript, this application is supported in all browsers. Here I use Unicode Arabic characters for replacing Arabic characters instead of English so no need for Arabic font for running this. It also supports Arabic numbers.

Using the code

When we type any button in keyboard, the corresponding Arabic character will replace it.

Add yasArabic.js inside <head> </head> for running this application. The main thing is the ID of the textbox must be entered inside the arabicValue() function on attribute onKeyup. So we can add multiple Arabic textboxes in the same page.

<input type="text" onkeyup="arabicValue(text1)" dir="rtl" id="text1" />

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

yaseercp
Software Developer (Senior)
United Arab Emirates United Arab Emirates
Member
ASP.NET Developer at Abudhabi
e-mail:yaseercp@gmail.com

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
-- There are no messages in this forum --
Permalink | Advertise | Privacy | Mobile
Web02 | 2.6.130513.1 | Last Updated 2 May 2013
Article Copyright 2013 by yaseercp
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid