title: how to copy text field value to clipboard using jquery?
body: <p>I want copy text field value to clipboard using jquery.</p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
      &lt;script src="http://code.jquery.com/jquery-1.11.0.min.js"&gt;&lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;input type="text" value="my text value"&gt;&lt;/input&gt;
      &lt;input type="button" value="Copy to clipboard"&gt;&lt;/input&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I saw some examples in other threads as: </p>
  
  <p>(1) <a href="https://stackoverflow.com/questions/1539641/how-to-copy-text-to-the-clients-clipboard-using-jquery">How to copy text to the client's clipboard using jQuery? - https://stackoverflow.com/ </a></p>
  
  <p>(2) <a href="https://stackoverflow.com/questions/6373614/copy-text-to-clipboard-with-jquery-or-javascript">copy text to clipboard with jquery or javascript - http://stackoverflow.com</a></p>
  
  <blockquote>
    <p>They use zeroclipboard.js, but I do not know how to implement copy only the value of a text box with a button</p>
  </blockquote>