/ Published in: jQuery
Expand |
Embed | Plain Text
$('#checkall').click(function(){ if(this.checked) { $('.checkbox').attr('checked', true); } else { $('.checkbox').removeAttr('checked'); } });
You need to login to post a comment.
joshangell on 02/28/11
1 person have marked this snippet as a favorite
$('#checkall').click(function(){ if(this.checked) { $('.checkbox').attr('checked', true); } else { $('.checkbox').removeAttr('checked'); } });
You need to login to post a comment.