Set and get caret (text cursor) position in textarea, input, or contenteditable element.
Get Caret Set Caret