alotaiba/Auto-Input-Text-Direction — pull request #1 by mpcabd (2011-11-02 14:28:25+00:00)
Title: jQuery plugin

Assalamu Alaikom,

I forked your project and converted it into a jQuery plugin.
I also changed a little bit in it so that the decision is based on the number of Arabic characters and non-Arabic characters, just like Google and Facebook are doing now.

Good luck!