title: How can I loop through all divs by id in jquery?
body: <p>If I have the following code how can I get a reference to all the divs with id="image" and iterate through all of them in jquery?</p>
  
  <pre><code>&lt;div id="content"&gt;
      &lt;div id="image"&gt;&lt;/div&gt;
      &lt;div id="image"&gt;&lt;/div&gt;
      &lt;div id="image"&gt;&lt;/div&gt;
      &lt;div id="image"&gt;&lt;/div&gt;
      &lt;div id="image"&gt;&lt;/div&gt;
      &lt;div id="image"&gt;&lt;/div&gt;
      &lt;div id="image"&gt;&lt;/div&gt;
      &lt;div id="image"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>