title: How to onClick copy text to clipboard from a <p> tag using JavaScript/jQuery?
body: <p>This is what I have.</p>
  
  <pre><code>&lt;p class="right-side-header" title="Copy Text" id="text"&gt;I am cool&lt;/p&gt;
  </code></pre>
  
  <p>Now the question is, what JavaScript will allow me to copy whatever text is in the <code>&lt;p&gt;</code> tag. I am new to JavaScript. I have no idea how to go about this.</p>
  
  <p>How can I copy the <code>innerText</code> of the above element to the clipboard?</p>