Menu
Hello,
I have a textarea which I clear the value of using JavaScript:
textAreaRef.value=”;
This clears the textarea of previously entered values, but the cursor is left at the position of the last character entered by the user. How can I reset the cursor position to the start of the textarea?
Many thanks,
Jack