select

fun select()(source)

The HTMLInputElement.select() method selects all the text in a textarea element or in an input element that includes a text field.

MDN Reference