AS - highlight text in an input field
AS - highlight text in an input field
- Started
- Last post
- 1 Response
- gabriel2
Any way to highlight the text in an input field when it becomes the focus? The problem I'm running into is that when the initial focus is given, the caret then jumps to the cursor position of the mouse immediately AFTER focus so that the initial highlighting is lost. Thanks!
- maximillion_0
try this after the last event
Selection.setFocus("myText_txt...
Selection.setSelection(0, 3);