add/remove class at same time in java script (php module)
<p>i am developing a module in PHP and i need to add/remove class at the same time using event onclick in javascript. 
Please suggest.</p>

<p>Below is the code but it is not working,</p>

<pre><code>jQuery("#cat-block-id").show();
 //jQuery("#product-block-id").hide();
jQuery(".fme_layered_attribute").click(function() {
    jQuery("#product-block-id").show();
//jQuery("#cat-block-id").show();
})
</code></pre>

<p>Thanks,</p>
