Return to Snippet

Revision: 42130
at February 28, 2011 03:57 by joshangell


Updated Code
$('#checkall').click(function(){
	if(this.checked) {
		$('.checkbox').attr('checked', true);
	}
	else {
		$('.checkbox').removeAttr('checked');
	}
});

Revision: 42129
at February 28, 2011 03:33 by joshangell


Initial Code
$('#checkall').click(function(){
				if(this.checked) {
					$('.checkbox').attr('checked', true);
				}
				else {
					$('.checkbox').removeAttr('checked');
				}
			});

Initial URL


Initial Description


Initial Title
jQuery simple checkbox list

Initial Tags
textmate, jquery

Initial Language
jQuery