I\'ve found a couple resources for how to place the cursor in a textarea at the end of the text, but I can\'t sort out a simple way to make it appear at the beginning.
please, use for textarea with scroll after using $(textareaSelector).val(val)
$(textareaSelector).val(val)
$(textareaSelector)[0].setSelectionRange(0, 0); $(textareaSelector).focus();