w2utils.setCursorPosition

Sets cursor position in an input or contentEditable element.
w2utils.setCursorPosition(input, pos)
input input, DOM Input element
pos number, Position of the cursor
Sets position of the cursor in an input element.

User Comments

comments powered by Disqus