Answers for "uncheck all checkboxes jquery"

12

how to uncheck a checkbox in jquery

$("#myCheckBox").prop("checked", false);
Posted by: Guest on October-08-2020
2

jquery get all checked checkboxes

var values=[];
$('input[name="your-checkbox-name[]"]:checked').each(function () {
  values[values.length] = (this.checked ? $(this).val() : "");
});
Posted by: Guest on July-27-2021
0

select all checkbox jquery

$('#select_all').change(function() {
  var checkboxes = $(this).closest('form').find(':checkbox');
  checkboxes.prop('checked', $(this).is(':checked'));
});
Posted by: Guest on March-15-2021

Code answers related to "uncheck all checkboxes jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language