getCursorPosition( input element )



Retrieves the relative cursor position within a textbox.  If the cursor is not within the box, -1 is returned.

Parameters:

  • input element - object reference to the textbox