Set And Get Caret Position Example

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