A tiny jQuery plugin created to set and get caret (text cursor) position in textarea, input, or contenteditable element.

set-get-caret-position

 

Demo
Download

source