Answers for "checkbox disabled jqury"

2

jquery disable checkbox

$(function() {
  enable_cb();
  $("#group1").click(enable_cb);
});

function enable_cb() {
  if (this.checked) {
    $("input.group1").removeAttr("disabled");
  } else {
    $("input.group1").attr("disabled", true);
  }
}
Posted by: Guest on August-13-2020

Code answers related to "checkbox disabled jqury"

Code answers related to "Javascript"

Browse Popular Code Answers by Language