ID of an element must be unique, use class attribute instead to group similar elements
The id attribute specifies its element's unique identifier (ID). The
value must be unique amongst all the IDs in the element's home subtree
and must contain at least one character
<div id="content">
<div class="image"></div>
<div class="image"></div>
<div class="image"></div>
<div class="image"></div>
<div class="image"></div>
<div class="image"></div>
<div class="image"></div>
<div class="image"></div>
</div>
then use the class selector and .each() to iterate through the list
$('#content .image').each(function(idx, el){
//here this/el refers to the current image dom reference
//do soemthing
})