select all text in textarea javascript

Solutions on MaxInterview for select all text in textarea javascript by the best coders in the world

showing results for - "select all text in textarea javascript"
Emilio
06 Oct 2020
1<textarea onclick="this.focus();this.select()"></textarea>
2
3<!-- To copy the text -->
4<textarea onclick="this.focus();this.select();document.execCommand('copy')"></textarea>