Copy to clipboard using jquery for all browsers
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1390953/how-to-select-all-text-in-a-textbox-and-copy-it-to-clipboard-using-javascript-jq">How to select all text in a textbox and copy it to clipboard using JavaScript/jQuery?</a><br>
  <a href="http://stackoverflow.com/questions/1539641/copy-text-to-the-clients-clipboard-using-jquery">Copy text to the client’s clipboard using jQuery</a>  </p>
</blockquote>



<p>I need a javascript, jquery function for copy to clipboard functionality. I know following code but it works in IE only:</p>

<pre><code>holdtext.innerText = copytext.innerText;
Copied = holdtext.createTextRange();
Copied.execCommand("Copy");
</code></pre>

<p>I see some tutorials which are suggestion some swf files. I have used some of them like <a href="http://www.steamdev.com/zclip/" rel="nofollow">http://www.steamdev.com/zclip/</a> but it is not working.</p>

<p>Please suggest solution to it.</p>
