jQuery TextRange

jQuery plugin for getting, setting, and replacing the selected text in input fields and textareas.