Textarea select() Methode
Definition and usage
select()
Method to select all the content of the text area.
Example
Select the content of the text area:
document.getElementById("myTextarea").select();
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 |