Textarea select() Method
Example
Select the contents of a text area:
document.getElementById("myTextarea").select();
Try it Yourself »
Description
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
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.