title: Get data from multiple divs with the same id - jquery
body: <p>I'm trying to get data from multiple divs sharing the same id using jquery, However every time I get just the first div data.</p>
  
  <p>Code:</p>
  
  <pre><code>$(document).ready(function(){
      if($('[id="title"]').length &gt; 0){
          console.log($('[id="title"]').html());
      }
  });
  
  &lt;div id="title"&gt;Title one.&lt;/div&gt;
  &lt;div id="title"&gt;Title two.&lt;/div&gt;
  &lt;div id="title"&gt;Title three.&lt;/div&gt;
  &lt;div id="title"&gt;Title four.&lt;/div&gt;
  </code></pre>
  
  <blockquote>
    <p>The result that I get is: Title one.</p>
    
    <p>I'm expecting to get: Title one. Title two. Title three. Title four.</p>
  </blockquote>
  
  <p>Any solution would be very appreciated.</p>