Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

uncheck all other checkboxes when one is checked

$(document).ready(function () {
  $('input[type="checkbox"]').click(function () {
    if ($(this).prop("checked") == true) {
      $('input[type="checkbox"]').not(this).prop('checked', false);
    }
  });
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #uncheck #checkboxes #checked
ADD COMMENT
Topic
Name
6+8 =