title: How to copy a div's content with clipboard.js or zeroclipboard?
body: <p>I have some divs in my HTML and I want to copy the contents of a div when I click on that div.</p>
  
  <pre><code>&lt;div class="container"&gt;Hello&lt;/div&gt;
  &lt;div class="container"&gt;World&lt;/div&gt;
  &lt;div class="container"&gt;LearnJS&lt;/div&gt;
  </code></pre>
  
  <p>So when I click on first div, it will copy the "Hello" on the clipboard.</p>
  
  <p>I searched this site and found some zeroclipboard and clipboard.js, but I don't know how can I use it; I'm new to jQuery.</p>
  
  <p>How would I write a function that copies the div's inner text onclick?</p>