How do you set the cursor position in a text field using jQuery? Get the caret position. Get cursor position in a textarea - Jquery: The following code is used to get the cursor point in textarea. 1). How would you get it to return the strings surrounding the cursor / selection? E.g. Please Sign up or sign in to vote. if you change the id of textarea with particular div id then you can get the cursor … Note that this is not supported in older browsers, most notably IE8-. Solution 4. How do you get the caret position in a