title: how to select all contents and copy them of any tags with jquery / js
body: <p>how to select all text that exists in my div.
  and then how can copy? with jquery . or javasacript</p>
  <p>i want to select my div tag content with my button when clicked.</p>
  <pre><code>&lt;div id=&quot;yes&quot;&gt;
      &lt;!-- //long - content//--&gt;
  &lt;/div&gt;
  &lt;input id=&quot;btn1&quot; type=&quot;button&quot;&gt;
  &lt;script&gt;
      $(&quot;#btn1&quot;).click(function(){
         /*here i want to select my div content*/
      })
  &lt;/script&gt;
  </code></pre>
  <p>how can i select div content? and how can copy it?</p>