Dheeraj Sharma
Dheeraj Sharma

Reputation: 45

writing reverse in the textbox

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.

Upvotes: 1

Views: 5550

Answers (1)

Mr. Alien
Mr. Alien

Reputation: 157434

Just use simple CSS

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

Demo

Updated:

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

Upvotes: 5

Related Questions