Textarea select() method
The Textarea object
Definition and Usage
The select() method is used to select the text within this element.
Syntax
textareaObject.select()
Browser support





All major browsers support the select() method
Example
Example
The example below selects the text in a text box:
The Textarea object