Skip to main content

Posts

Showing posts from June, 2015

How to Select / Deselect All Checkboxes using jQuery

Jquery <script>     jQuery(document).ready(function(e)     {         jQuery(". check_all ").click(function()         {            jQuery(". all_checked ").attr('checked', $(this).is(':checked') ? true : false);         })     }); </script> HTML < input type = "checkbox" class = " check_all " / > < input type = "checkbox" class = " all_checked " / > < input type = "checkbox" class = " all_checked " / > < input type = "checkbox" class = " all_checked " / >