I want to do something like so:
$('.anwer_labels').click(function() {
    $(this).toggleClass('active');
    $('.anwer_labels').removeClass('active');
   // $(this).addClass('active').siblings().removeClass('active');;
   // $(this).removeClass('active');
})
In this line i want to add an exception, so that i wouldnt include $(this):
$('.anwer_labels').removeClass('active'); //some code here to not add $(this)
Can this be done?
not() will do it.
$('.anwer_labels').not(this).removeClass('active');
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With