3

I need a custom text area inside which when the keyboard Enetr key is pressed sould insert new from right to left. and when back space is clicked at the beginning of that line shuold remove that line.

2 Answers 2

11

Use dir="rtl" in the tag?

1
  • thanks for the reply. there is still a problem when using dir="rtl". when you press enter key for new line a new line is not entered but the line created comes down. i want the direction right to left to be set.
    – saadi
    Jun 21, 2010 at 0:44
6

You can also use the CSS direction property, direction: rtl;.

After reading your comment to digitalFresh... Here's the solution you're looking for:

<textarea style="text-align: right;"></textarea>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.