selectionEnd property
int?
get
selectionEnd
The selectionEnd property of the HTMLInputElement interface is a
number that represents the end index of the selected text. When there is
no selection, this returns the offset of the character immediately
following the current text input cursor position.
Note: According to the WHATWG forms spec
selectionEndproperty applies only to inputs of types text, search, URL, tel, and password. In modern browsers, throws an exception while settingselectionEndproperty on the rest of input types. Additionally, this property returnsnullwhile accessingselectionEndproperty on non-text input elements.
If selectionEnd is less than selectionStart, then both are
treated as the value of selectionEnd.
Implementation
external int? get selectionEnd;
set
selectionEnd
(int? value)
Implementation
external set selectionEnd(int? value);