Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
  }       
});
 
PREVIOUS NEXT
Tagged: #How #check #checkboxes #Ask #Question
ADD COMMENT
Topic
Name
6+5 =