Posted By

joshangell on 02/28/11


Tagged

textmate jquery


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

SpoodyGoon


jQuery simple checkbox list


 / Published in: jQuery
 

  1. $('#checkall').click(function(){
  2. if(this.checked) {
  3. $('.checkbox').attr('checked', true);
  4. }
  5. else {
  6. $('.checkbox').removeAttr('checked');
  7. }
  8. });

Report this snippet  

You need to login to post a comment.