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 could also try:
$('label[for^="test_"]').click(function(){ $('div#target').append($(this).clone()); return false; });