Function for increasing number after class up to max
<p>I would like to have a class change (with an increasing number) each time this function is called.</p>

<p>I currently have tried this:</p>

<pre><code>function(i) { 
    if(i &lt; 16) {
        $("#elm").removeClass("cls-" + (i));
        i++;
        $("#elm").addClass("cls-" + (i++));
    } else {}
}
</code></pre>

<p>New to jQuery so I'm not sure what to fix :/ Thanks!!!</p>
