I am trying to style a checkbox list. I\'ve added my styles and they appear correctly when rendered. I want to add a class when the label for the checkbox is clicked. This i
you can try this...
$("label").find("*").click(function( event ) { event.stopPropagation(); }); $('label[for*=test_]').on('click',function(){ $(this).toggleClass('test'); });