add incrementing class to images inside a div
<p>Okay I dont think anyone has covered this yet.</p>

<p>I have a div with x amount of images inside it. I need to add the class 00x to each image where the x starts at 1 and goes up everytime for each image. I have tried doing this with a for in statement however cant seem to make it work. I am using the jquery library so feel free to suggest jQuery related fixs. Here is my html:</p>

<pre><code>&lt;div id="fixed"&gt;
    &lt;img src="/prodimages/Ad060-2.jpg" /&gt;
    &lt;img src="/prodimages/Ad060-2.jpg" /&gt;
    &lt;img src="/prodimages/Ad060-2.jpg" /&gt;
&lt;/div&gt;
</code></pre>

<p>so I need it to select all images inside #fixed and then add the class 00 + i where i++ for each image. I need something like a php foreach. I dont really understand how for in works.</p>

<p>Please advise. :)</p>
