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