select all text in textarea javascript
snippet in html

select all text in textarea javascript

user2857

<textarea onclick="this.focus();this.select()">