I want to use HTML’s Form text-box.
The problem is that I want my users to write in both RTL and LTR languages.
Is there any option to auto Indent the user’s input, inside the text-box (while writing) from right to left? (as done in google)
<input type="text" name="text">
<input type="submit" name="submit">
Thanks,
You should be able to determinate the language written by looping through all chars (A-z = ltr, 1-9 neutral and other rtl or something). Then apply the ‘direction: rtl’ css if its a rtl language.