jQuery.selection is a jQuery plugin that operate selection text/caret.You can get selection text/caret position information or get selected text, replace/insert selected text.