Textarea select() method

Definition and Usage

select() Method to select all the content of the textarea.

Example

Select the content of the textarea:

document.getElementById("myTextarea").select();

Try It Yourself

Syntax

textareaObject.select()

Parameter

None.

Return Value:

No Return Value.

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support Support Support Support Support