Created
August 13, 2022 18:16
-
-
Save jgoslow/9e703ff9e4a5d277d6703082b8643a40 to your computer and use it in GitHub Desktop.
Clipboard JS Helper Functions
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
function copyInputValueToClipboard(input) { | |
input.select(); | |
document.execCommand("copy"); | |
console.log(`${input.value} copied to clipboard!`) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment