title: How to have infinite number of copy to clipboard for infinite elements that have same class?
body: <p>My HTML:</p>
  <pre><code>   &lt;Div Class='POSTS'&gt;
      &lt;Div Class='POST'&gt;
          &lt;Div Class='CONTENT'&gt;Text1&lt;/Div&gt;
      &lt;/Div&gt;
      &lt;Div Class='POST'&gt;
          &lt;Div Class='CONTENT'&gt;Text2&lt;/Div&gt;
      &lt;/Div&gt;
      &lt;Div Class='POST'&gt;
          &lt;Div Class='CONTENT'&gt;Text3&lt;/Div&gt;
      &lt;/Div&gt;
      &lt;Div Class='POST'&gt;
          &lt;Div Class='CONTENT'&gt;Text4&lt;/Div&gt;
      &lt;/Div&gt;
      &lt;Div Class='POST'&gt;
          &lt;Div Class='CONTENT'&gt;Text5&lt;/Div&gt;
      &lt;/Div&gt;
      &lt;Div Class='POST'&gt;
          &lt;Div Class='CONTENT'&gt;Text6&lt;/Div&gt;
      &lt;/Div&gt;
  &lt;/Div&gt;
  </code></pre>
  <p>And It Continues Without Any Limit...(Never Ending)
  With Different Text Inside Each Element With Class Of &quot;CONTENT&quot;.</p>
  <p>I Searched Over This Website And Found This :</p>
  <p>Https://Stackoverflow.Com/Questions/400212/How-Do-I-Copy-To-The-Clipboard-In-Javascript</p>
  <p>But In The Project That I'm Working In I Can't Specify Id On Each Element As You Know It's Infinite Number Of These Elements:</p>
  <pre><code>&lt;Div Class='POST'&gt;
          &lt;Div Class='CONTENT'&gt;some text&lt;/Div&gt;
      &lt;/Div&gt;
  </code></pre>
  <p>So It Needs To Be Automatically Added.</p>
  <p>And I Want To :
  When User Clicks On The Text Inside Of Element With The Class Of &quot;CONTENT&quot; (No Matter How Long The Text Is And What It Have) , The Entire Text And Tags And ... Be Copied To Clipbored.</p>
  <p>I Don't Want To Set Buttons !
  I Want To Make The Whole</p>
  Tags,Text,And ....
  Be Copied On Each One Of Them Without Any Limits!
  By Clicking on it's own text.(imagine this as a textarea that user clicks on text inside of it and js copies all of text but this one is div with text inside of it)
  <p>If You Think I Missed Sth And It's Not Clear Enough Let Me Know!</p>
  <p>Thanks In Advance!</p>