InputField.setSelectionRange

Property of Input Field

Syntax

Input Field.setSelectionRange(selectionStart, selectionEnd);

Parameters

Parameter Description
selectionStart The index of the beginning of selected text
selectionEnd The index of the end of selected text

Description

Sets the start and end positions of the current text selection in an Input Field.

Examples

In this code text will be selected in the [0,3) range

See also

InputField.selectionStart, InputField.selectionEnd, InputField.text

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.