Object doesn't support property or method 'removeClass'
<p>Im trying to do a simple removeClass and addClass to change styles on an Img.</p>

<pre><code>    &lt;div id="Pic_Viewer"&gt;
        &lt;div id="Main_Pic_Viewer"&gt;
                &lt;div class="Not_Selected" &gt;
                    &lt;img src='#' alt="PicURL_1" /&gt;
                &lt;/div&gt;
                &lt;div class="Not_Selected" &gt;
                    &lt;img src='#' alt="PicURL_2" /&gt;
                &lt;/div&gt;
        &lt;/div&gt;
        &lt;div id="Small_Pic_Viewer"&gt;
            &lt;ul&gt;
                &lt;li&gt;
                    &lt;img class="Small_Pic" src'#' alt="PicURL_1" /&gt;
                &lt;/li&gt;
                &lt;li&gt;
                    &lt;img class="Small_Pic" src='#' alt="PicURL_2" /&gt;
                &lt;/li&gt;
            &lt;/ul&gt;
        &lt;/div&gt;
    &lt;/div&gt;
</code></pre>

<p>I have tried doing this with the #Main_Pic_Viewer img inside div and without.</p>

<p>js:</p>

<pre><code>$('#Small_Pic_Viewer ul li').click(
        function () {
            var ThisLI = this.firstElementChild.alt;
            var BigImgDiv = $('#Main_Pic_Viewer div');
            var CurDiv;

            for (var i = 0, l = BigImgDiv.length; i &lt; l; i++) {
                CurDiv = BigImgDiv[i];
                if (BigImgDiv[i].children[0].alt === ThisLI) {
                    CurDiv.removeClass('Not_Selected').addClass('Selected');
                } else {
                    CurDiv.removeClass('Selected');
                };
            };
        }
    );
</code></pre>

<p>Not sure why im getting this error message, as removeClass() is working fine in other methods.</p>
