THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

Textarea select() Method

Textarea Object Reference 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 Reference Textarea Object