Remove class using index
<p>This might be easy but I am having trouble in getting it to work. I am using .each() to iterate through a list. I was wondering if it is possible to remove a class using the index.</p>

<p>eg. If there were 10 items in the list and I want to remove the class from the 5th element when I click the 8th element for example.</p>

<pre><code>$(function () {
var items = $('#v-nav&gt;ul&gt;li').each(function (index) {
    $(this).click(function () {
        if (index = 8)
{
$(#5).removeClass('class');
}
    });
});
</code></pre>

<p>Anyone with any ideas? Thank you</p>
