Add class to all children except first child
<p>I have some html where I want to add a class to all children except the first child.</p>

<pre><code>    &lt;div class="test"&gt;
        &lt;div class="different"&gt;title&lt;/div&gt;
        &lt;div class="same"&gt;a&lt;/div&gt;
        &lt;div class="same"&gt;b&lt;/div&gt;
        &lt;div class="same"&gt;c&lt;/div&gt;
    &lt;/div&gt;
</code></pre>

<p>with the below js</p>

<pre><code>&lt;script&gt;
$(".test").children().each(function(i) {
  $(this).addClass("eg_" + (i+1));
});
&lt;/script&gt;
</code></pre>

<p>see this fiddle</p>

<p><a href="http://jsfiddle.net/aaronk85/HaH2y/" rel="nofollow">http://jsfiddle.net/aaronk85/HaH2y/</a></p>

<p>I want every child div of test except the first one to get the class "eg_" + (i+1) and I can't seem to get this working?</p>

<p>I have seen a few similar examples see the eg below but can't quite work it out from this.  Where have I gone wrong here?</p>

<p><a href="http://jsfiddle.net/aaronk85/y9bEG/11/" rel="nofollow">http://jsfiddle.net/aaronk85/y9bEG/11/</a></p>
