Skip to content

Instantly share code, notes, and snippets.

@jakebathman
Created September 14, 2015 13:50
Show Gist options
  • Select an option

  • Save jakebathman/afe4f0a09b6db062f62e to your computer and use it in GitHub Desktop.

Select an option

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/
<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