如何使用jQuery在textarea中获得插入符号的位置?我正在寻找光标从文本开头的偏移,而不是(x,y)位置.
jquery textarea cursor-position
cursor-position ×1
jquery ×1
textarea ×1