removeClass() is not getting applied 
<p>in my jQuery code, <code>removeClass</code> is not working. Whenever I click <code>hide</code> link the <code>.close</code> element is not getting removed in IE6.0 but it works in firefox and IE8.0, Below is my jQuery code:</p>

<pre><code>$(document.ready(function()){
    toggleNodes = function(node,action){
        var $componentone = $('.componentone', node);

        if (action == undefined || action == 'hide'))) {
            $componentone.addClass('closed');
            $componentone.hide();
        }
        else if  (action=='undefined'||action=='view'){
            $componentone.removeClass('closed');
            $componentone.show();
        }
    }
});
</code></pre>

<p>`close' is declared as below in .css file: </p>

<pre><code>.componentone{
    margin-left:10px;
    padding-left:15px;
    border:1px solid #fff;
    border:0px solid #ddd;
}

.componentone.closed{
    margin-left:10px;
    padding-left:15px;
    border:1px solid #fff;
    border:0px solid #ddd; 
}
</code></pre>

<p>And in JSP I have used it like this:</p>

<pre><code>&lt;div="componentone"&gt;body of div&lt;/div&gt;
&lt;div="component"&gt;body of div new&lt;/div&gt;
</code></pre>
