remove classes added by Jquery
<p>I am working on an accordion and Jquery is adding classes, I want to stop jquery to add some classes. how can I do that?
Below is the code but Jquery keeps on adding .ui-state-default to some visited elements.</p>

<pre><code>if($check.hasClass('.ui-state-default')){
            $(this)('.columns &gt; span').removeClass('ui-state-default');
            $(this)('.columns &gt; span').addClass('ui-state-active');
        }else 
        {
            $(this)('.columns &gt; span').removeClass('ui-state-active');
            $(this)('.columns &gt; span').addClass('ui-state-default');
        }
</code></pre>
