Skip to content

Instantly share code, notes, and snippets.

@jordanisip
Created April 23, 2009 23:26
Show Gist options
  • Save jordanisip/100835 to your computer and use it in GitHub Desktop.
Save jordanisip/100835 to your computer and use it in GitHub Desktop.
$(function() {
$('.checkbox input:checkbox').change(function(){
var service = $(this).parent().next().find('label:first');
if($(this).is(':checked')) {
service.addClass('active');
} else {
service.removeClass('active');
}
}).triggerHandler('change');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment