Im trying to override a class of the bellow label :
<label id='wishlist' class="btn btn-default btn-custom-small ">
<input type="checkbox" class="searchfilter collapse" value="my_wishlist" name="my_wishlist" data-toggle="button"> My Wishlist </label>
I can do it with the bellow code snipets
$('#wishlist').removeClass('btn-custom-small').addClass('btn-custom-small active');
But the code stops working as soon as it is called in a click event:
$("#wishlist").click(function() {
$('#wishlist').removeClass('btn-custom-small').addClass('btn-custom-small active');
});