Caret

A small jQuery plugin to set and query caret (keyboard input cursor) position within <textarea>s and text <input>s.

Demonstration

Current caret position is 0