FadeTo not working as intended

FadeTo not working as intended

Hello All,

I have 6 buttons. When I click on first button, all the other buttons should fadeto some percent, and When I click on second button, the first button should fade along with other 4 buttons, but the second button should not fade.

On the whole except the button I clicked all the others should be faded. I used the following code, it works when I click first button, but when I click on second one nothing changes. That means the first button is not fading and the second one remains faded.

$(".class").click(function() {
         
         $(this).removeClass(); 
         $(".class").fadeTo("fast",0.33);
               
    });

help me please, why it is not working. Thanks