jQuery 1.10.1, HTML, CSS, JavaScript
jQuery 3.3.1, HTML, CSS, JavaScript
Show the caret position when selecting text in a <textarea> or contenteditable <div>.
No-Library (pure JS), HTML, CSS, JavaScript
jQuery 1.9.1, HTML, CSS, JavaScript
jQuery 2.0.0b1, HTML, CSS, JavaScript
jQuery 1.4.2, HTML, CSS, JavaScript
more at: http://stackoverflow.com/a/16507264/1250044