select

fun select()(source)

The select() method of the HTMLTextAreaElement interface selects the entire contents of the textarea element.

MDN Reference