Lot's of solutions here on stackoverflow show how to focus the cursor at the end of an input text but they don't show how to focus visually the end of a input text - the overflow of an input text.
Ex:
Most of the solutions are focus at the end but show the start of the text:
But via javascript, I want to focus the end:
Edit:
Not duplicate because
dir="rtl"
doesn't solve it. I want to fill the field left to write, but when click on it I want to scroll to the end of the input text. @ibiza's answer solved the problem.
Aucun commentaire:
Enregistrer un commentaire