var $temp = $("<input>");
$("body").append($temp);
$temp.val('123').select();
document.execCommand("copy");
$temp.remove();
What is wrong with this code? It should be correct
Doesn't work at all for me.
I have read many threads here and this seems to work for others.
I have no Idea why this doesn't work for me. In console I nothing.