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.
Below is the code but it is not working,
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();
})
Thanks,