JSFiddle - React, Tailwind, and code Playground
by Joe Cisneros
HTML
<textarea rows="8" id="txt1" style="width:400px;" >
Hello
Hello
Hello
Hello</textarea>
JavaScript
$("#txt1").focusin(function() {
$(this)[0].setSelectionRange($(this).val().length, $(this).val().length);
});