/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$('#checkall').click(function(){ if(this.checked) { $('.checkbox').attr('checked', true); } else { $('.checkbox').removeAttr('checked'); } });