/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<script> jQuery(document).ready(function() { jQuery("#selectall").click(function() { var checked_status = this.checked; jQuery("input[type='checkbox']").each(function() { this.checked = checked_status; }); }); }); </script>