How can I get the caret's position in a textarea using jQuery? I'm looking for the cursor's offset from the start of the text, not for [the (x, y) position](https://github.com/component/textarea-caret-position).
以上就是Cursor position in a textarea (character index, not x/y coordinates)的详细内容,更多请关注web前端其它相关文章!