I want to do something like this:
$('.anwer_labels').click(function() { $(this).toggleClass('active'); $('.anwer_labels').removeClass('active'); // $(this).addClass('active').siblings().removeClass('active');; // $(this).removeClass('active'); })
On this line, I want to add an exception, so I would not include $(this)
:
$('.anwer_labels').removeClass('active'); //some code here to not add $(this)
Can this be done?
Edgar source share