Answers for "Enable Disable TextBox on CheckBox click (checked unchecked) using JavaScript and jQuery"

2

enable/disable textbox on checkbox click using jquery

$(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
0

jquery checkbox unchecked

$("input:radio[name='NAME']:radio[value='VALUE']").attr("checked",true);
$("input:radio[name='NAME']").removeAttr("checked");
Posted by: Guest on November-25-2020

Code answers related to "Enable Disable TextBox on CheckBox click (checked unchecked) using JavaScript and jQuery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language