Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function copyToClipboard(element) {
var $temp = $("<textarea></textarea>");
$("body").append($temp);
$temp.text("aaaa").select();
document.execCommand("copy");
$temp.remove();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.