textarea-caret-position - xy coordinates of a textarea or input's caret

  •        136

Get the top and left coordinates of the caret in a