setSelectionRange
fun setSelectionRange(start: Int?, end: Int?, direction: SelectionDirection = definedExternally)(source)
The setSelectionRange()
method of the HTMLTextAreaElement interface sets the start and end positions of the current text selection, and optionally the direction, in a textarea element.