jquery.caret.js gibt NUR die anfangsposition (auch bei selections) des cursors zurück. immer nur eine volle zahl. get the cursor position /selection inside textarea usage: $(target).caret(); /* target = textarea element */ fieldSelection Retrieve the caret (text cursor) position from textareas and input fields as well as the actual selection and its index boundaries. Replacing the selection string is also supported. Unfortunately special treatment for such a simple thing is needed, because MSIE doesn't support the easy DOM 3.0 methods.