Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Arabic Textbox Using Unicode Characters

0.00/5 (No votes)
2 May 2013 1  
Arabic text box using simple JavaScript.

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here