selEnd

Specifies the index position of the last character of the text selection stored in the prevText property during a change event.

Syntax

Reference_Syntax.selEnd

Values

Type

Values

Integer

A valid integer representing the 0 based index value of the last character of the text selection.

If no text is selected, this property is set to the position of the text entry cursor at the time the change is made. Changing the value of this property changes which characters will be replaced by the value of change and also repositions the text entry cursor.

Applies to

Version

XFA 2.1

Examples

JavaScript

xfa.event.selEnd;

FormCalc

xfa.event.selEnd

// Ethnio survey code removed