I have a text area with a direction from right to left
#myTextarea
{
direction: rtl;
}
in the event, with jquery, I change direction from left to right:
$('#myTextarea').css('direction', 'ltr');
this moves the entire contents of the text area from right to left.
I want to move only the current line and leave the previous lines in their default direction.
Is there any way to achieve this?
source
share