writing reverse in the textbox

2019-06-02 07:00发布

问题:

I want to input in a text box in reverse order Like a Urdu language.Is any input
property to do it or any code? direction:rtl; only start from end but the input text is at it is.It does'nt reverse
looking in the textbox.

回答1:

Just use simple CSS

input[type=text] {
   text-align: right;
}

Demo

Updated:

input[type=text] {
    direction: rtl;
    unicode-bidi: bidi-override;
}


标签: input