C
cc
Hi,
Is possible set and get the caret position of cursor in a text field ?
Thanks,
Carlo
Is possible set and get the caret position of cursor in a text field ?
Thanks,
Carlo
cc said:Is possible set and get the caret position of cursor in a text field ?
but how can get caret position?
Martin said:For Mozilla you can read out
textControl.selectionStart
textControl.selectionEnd
as number offsets, if both are the same then you have the caret position
as a number. If they are not the same I am not sure what you would
regard as the caret position, probably selectionStart.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.