Answers for "how to enable and disable the html checkbox using jquery version < 1.5?"

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 "how to enable and disable the html checkbox using jquery version < 1.5?"

Code answers related to "Javascript"

Browse Popular Code Answers by Language