title: How to get div and full inner content in javascript?
body: <p>I want get div inner content in javascript </p>
  
  <p>Ex:</p>
  
  <pre><code>&lt;div id="content" style="height: 20px; overflow: hidden"&gt;
    content&lt;br&gt;content&lt;br&gt;content&lt;br&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This is my html code. i know only div id (content). but i want retrieved main div and their inner content via javascript like..</p>
  
  <pre><code>&lt;div id="content" style="height: 20px; overflow: hidden"&gt;
   content&lt;br&gt;content&lt;br&gt;content&lt;br&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Also i want retrieved content div attribute also like style, class name etc.            </p>