selection of editable text field
Posted: Mon May 30, 2011 10:56 am
I have an editable text field which the user has entered a value into.
When my validation fails I want to select all text within the field so that any keypress from the user will overwrite the existing contents of the field.
By 'select all text' I mean similar to the selection like the blue overlay you get like when you do a select and copy with the mouse.
Focus "fieldName" is easy enough, but can't yet find a method to select the field contents.
Thanks!
When my validation fails I want to select all text within the field so that any keypress from the user will overwrite the existing contents of the field.
By 'select all text' I mean similar to the selection like the blue overlay you get like when you do a select and copy with the mouse.
Focus "fieldName" is easy enough, but can't yet find a method to select the field contents.
Thanks!