selectionEnd

open external var selectionEnd: Int?(source)

The selectionEnd property of the HTMLInputElement interface specifies the end position of the current text selection in an element.

MDN Reference