Get last word position (x,y) coordinates in textarea

Viewed 106

I want to wrap the email addresses inside textarea to the next row rather than breaking. I have try somehow to find the last word that reaches the border, but I couldn't find any solution My question is : Is there any event where I can get the position of the last word reaching the border of the textarea so i can get the last word and move it to the next line?

In the following img you can see the current behavior

textarea example

1 Answers

If i could understand your question. You can add <br> tag before last email it will bring down the last email to next row. if you want emails in first row to reach border of text area use<div class="textarea" align="justify" it will stretch it to the border of the text area. Please elaborate if i misunderstood your question.

Edit: in textarea there's isn't much you can do cause its mostly used for comments section.

Related