title: jQuery- find in multiple elements specific class & add to the first, second different classes
body: <p>I have in a div Container some News Articles with and without images. Now want to add for each article without image a different class. If there is an image, the image is wrapped with <code>&lt;div class="news-img-wrap"&gt;&lt;/div&gt;</code>. Articles with no images don't have this <code>div</code>. So i try this </p>
  
  <pre><code>$('.news-list-view article .content-background').each(function () {
     if ($(this).find('.news-img-wrap').length) {
        $(this).addClass('colored-box-red ');
  
  
  
     } else {
        $(this).addClass('default-box');
     }
  });
  </code></pre>
  
  <p>This code works fine for all articles with image get the extra class.
  My Question is how i can give each article with image an different extra class "first,second,third" </p>
  
  <p>My example till now.<a href="http://jsfiddle.net/b9JuT/" rel="nofollow">http://jsfiddle.net/b9JuT/</a></p>
  
  <p>thanks for your help and sorry for my bad english.</p>