[Solved] bug in add remove class with if else [closed]
In order for it not to run 2 times when you click you have to use the input instead of label $(‘.layout input’).click(function () { $(this).parent().toggleClass(‘label_act’) }); FIDDLE solved bug in add remove class with if else [closed]