Latest web development tutorials
 

Textarea select() Method

< Textarea Object

Example

Select the contents of a text area:

document.getElementById("myTextarea").select();
Try it Yourself »

Definition and Usage

The select() method selects the entire contents of a text area.


Browser Support

Method
select() Yes Yes Yes Yes Yes

Syntax

textareaObject.select()

Parameters

None.

Return Value

No return value.

< Textarea Object