Skip to content
This repository has been archived by the owner on Mar 20, 2021. It is now read-only.

Latest commit

 

History

History
9 lines (6 loc) · 910 Bytes

README.markdown

File metadata and controls

9 lines (6 loc) · 910 Bytes

Maybe you have seen this effect already used by Google, espicially in Google Translate, and YouTube. Whenever you change the input language on forms input, for example, to Arabic, and start typing, the direction of the text field changes to match the language natural direction.

Auto Input Text Direction is a little JavaScript function that I wrote, it detects the input language on html forms, and changes the input direction based on the language, i.e., right to left for the Arabic language, Thus, emulating Google's effect.

For more information, please visit the article where I explain its functionality.