In my html page, I need to make my text input accept a specific set of letters. I do that by catching the keypressed event and checking that the entered character is valid.
Those allowed characters are both taken from english that is written from left to right, and from a few other languages that are written from right to left. Each word of the input can be a mix of both english and arabic, hebrew letters.
I need to make the text box display the text written from right to left (same behavior for hebrew or arab to apply to english) - for example if I write down -
A
B
א
ב
C
D
Y
I want it to be presented exactly in this order from right to left.
Setting the "style:dir=rtl"
doesn't solve it, it just present the text to be written from right to left, but doesn't actually change the order of the English characters to be presented as I need.
rtl
result is this:
B
A
א
ב
Y
D
C
What is the best way to do so?
Edit:
It seems like this addresses my problem : Right to left Text HTML input although the solution is not explained to details as I'd hope to get.