jQuery simple checkbox list


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.