Answers for "How to check all checkboxes using jQuery? Ask Question"

0

How to check all checkboxes using jQuery? Ask Question

$("#checkAll").change(function(){

  if (! $('input:checkbox').is('checked')) {
      $('input:checkbox').prop('checked',true);
  } else {
      $('input:checkbox').prop('checked', false);
  }       
});
Posted by: Guest on February-05-2021

Code answers related to "How to check all checkboxes using jQuery? Ask Question"

Code answers related to "Javascript"

Browse Popular Code Answers by Language