title: How do i display various div values using divs with the same id?
body: <p>Ok to start of i currently have 4 divs with the same id for example:</p>
  
  <pre><code> &lt;div id='name'&gt;&lt;/div&gt;
   &lt;div id='name'&gt;&lt;/div&gt;
   &lt;div id='name'&gt;&lt;/div&gt;
   &lt;div id='name'&gt;&lt;/div&gt;
  </code></pre>
  
  <p>and im currently using a javascript function to display the value of the div's for example:</p>
  
  <pre><code>function divCheck(){
          alert(document.getElementById('name').innerHTML);
          }
  </code></pre>
  
  <p>the problem im having is when i call the function it only displays the value of the first div.</p>
  
  <p>My goal is to display the values of all the divs and place it into a Textarea input. </p>
  
  <p>I will really truly appreciate it. In advance thank you.</p>