Created
September 14, 2015 13:50
-
-
Save jakebathman/afe4f0a09b6db062f62e to your computer and use it in GitHub Desktop.
Auto-select textarea contents on click
From https://css-tricks.com/snippets/javascript/auto-select-textarea-text/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <textarea rows="10" cols="50" onclick="this.focus();this.select()" readonly="readonly"> | |
| example text | |
| </textarea> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment