Instruction set reference
Sets the position of the text entry carat (cursor position, or range of selected text) in an input element such as a textarea tag.
- location: The element for which to set the text entry carat position.
- arg: Character position of the cursor within the element.
- arg: Character position of the end of the selection. If no text should be selected (simple cursor) then use the same value as arg (to represent that the selection has a length of zero).