w2utils.getCursorPosition

Returns cursor position in an input or contentEditable element.
w2utils.getCursorPosition(input)
input input, DOM Input element
Returns position of the cursor in an input element.

User Comments

comments powered by Disqus