Cycle class on group of element with a link
<p>How do I cycle a class on set of elements on clicking a link. 
Here's what the HTML looks like:</p>

<pre><code>&lt;section class="container"&gt;
    &lt;div class="item"&gt;&lt;/div&gt;
    &lt;div class="item"&gt;&lt;/div&gt;
    &lt;div class="item"&gt;&lt;/div&gt;
    &lt;div class="item"&gt;&lt;/div&gt;
&lt;/section&gt;
&lt;a href="#"&gt;Iterate Class on Items&lt;/a&gt;
</code></pre>

<p>JS:</p>

<pre><code>$('a').click(function() {
     $('.container .item').each(function() {
          //cycle .active class on click
     });
});
</code></pre>
