jquery disable checkbox

  $("#radiobutt input[type=radio]").each(function(i){
    $(this).click(function () {
        if(i==2) { //3rd radiobutton
            $("#textbox1").attr("disabled", "disabled"); 
            $("#checkbox1").attr("disabled", "disabled"); 
        }
        else {
            $("#textbox1").removeAttr("disabled"); 
            $("#checkbox1").removeAttr("disabled"); 
        }
      });

  });

3.7
10
BobyFriends 115 points

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

function enable_cb() {
  if (this.checked) {
    $("input.group1").removeAttr("disabled");
  } else {
    $("input.group1").attr("disabled", true);
  }
}

3.7 (10 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
how disable a checkbox in jqueyrf how to disable check click on checkbox in jquery disable checked jquery onclick of checkbox disable input field jquery input checkbox disabled jquery how to enable checked for checkbox jquery enable disable button checkbox jquery add disabled to checkbox jquery jquery checkbox disabled true jquery checkbox enable disable disable a textbox in jquery jquery disable all checkboxes checkbox disable using jquery disable all checkboxes in a div jquery checked disabled checkbox jquery jquery how to disable checkbox attribute disabled jquery also remove the checkbox jquery select checkbox not disabled jquery dynamically add checkbox disabled checkbox disabled attribute jquery enable disable textbox using checkbox jquery how to check textbox is disabled or not in jquery get disable textbox value using jquery how to get disabled textbox value in jquery input type checkbox disabled using jquery how to disabled checkbox using jquery if it check checkbox active and disable using jquery jquery checked checkbox value except disabled jquery make input checkbox disable disable or enable on entering the text in textbox - jquery remove disabled from html element on entering response in textbox- jquery jquery check if checkbox is disabled enable/disable form on checkbox click using jquery enable/disable textbox on checkbox click using jquery how to disable text field in jquery example disabled checked checkbox in jquery Clicking on checkbox should disable form jquery disabled checkbox using jquery how to div enable and disable checkbox using jquery how to disable checked checkbox in jquery how to disabled amount when amount checkbox jquery disable jquery textbox jquery disabled checkboxes how to mark a checkbox as disabled in jquery how to disable checkbox in jquer how to disable checkbox in jquery pagel oad jquery disable editing textbox jquery textbox disabled attribute how to disable enable a checkbox in jquery jquery disable input text field enable disable button on checkbox click jquery jquery disable checkbox return false html textbox disable jquery how to disable checkboxlist in jquery jQuery disable checkbox when another is checked jquery disable a checkbox jquery checkbox is disabled how to disable textbox using checkbox in jquery how to disable and enable textbox in jquery how to enable disable checkbox in jquery jquery disable a textbox disable all checkbox jquery jquery disable checkbox not checked jquery disable checkbox by name jquery remove disabled from checkbox how to disable a textbox in jquery jquery disable textbox on checkbox click how to make checkbox disabled in jquery checkbox if disabled jquery disable all checkboxes jquery jquery disable input checkbox check checkbox disabled jquery jquery disable checkbox by class jquery checkbox disabled selector add checkbox disabled true in jquery jquery if checkbox checked disabled input jquery checkbox checked input disabled disable checked checkbox jquery uncheck disable checkbox in jquery ajax jquery disable textbox jquery disable checkbox by id jquery remove disabled attribute from textbox checkbox disabled jqury disable the checkbox in jquery checkbox checked remove disabled jquery textbox attribute disabled jquery disable a textbox using jquery enable or disable checkbox in jquery checkbox checked disabled select jquery remove disabled checkbox jquery disable check box jquery disabled textbox in jquery how to disable a checkbox jquery jquery make checkbox disabled how to disable textbox in jquery and editable text disable the text box using jquery input checkbox disable jquery using jquery to disable textbox jquery checkbox disabled false disable the texbox - jquery disable text input jquery keep checked true and disable checkbox in jQUery jquery get checkbox not disabled jquery to disable textbox jquery textbox remove disabled textbox disable in jquery input type checkbox disabled jquery checkbox checked property and disabled jquery disable checkbox in jquery how to uncheck disabled checkbox in jquery how to check checkbox is disabled or not in jquery how to check checkbox is disabled in jquery checkbox disabled false in jquery checkbox disable in jquery checkbox disablein jquery disable checkbox with jquery with class disable checkbox with jquery how to disable a checkbox using jquery disable checkbox by name jquery disable all textbox with in form tag in html jquery disable enable check box button inn jquery checkbox disabled enable jquery make checkbox disabled jquery jquery disable button while checkbox disable checkboxes jquery disable checkbox after event disable onselect disable libvirt dnsmasq div lengh jquery disable dark theme info plist jquery add disabled to checkbox jquery textbox disabled how to make textbox enabled in jquery jquery disable checkbox disable enable checkbox jquery jquery checkbox disabled jquery disable textbox control How to disable checkbox in a ternray if condition jquery apply disable enable textbox using jquery checkbox disable jquery how to enable and disable input check on checkbox in jquery can i add disable to a checkbox how to disable a checkbox in jquery enable disable textbox using jquery disable the textbox in jquery jquery disable enable checkbox by name how to enable checkbox in jquery checkbox is disabled jquery disable a checkbox javascript jquery set disabled checkbox jquery how to clear autocomplete textbox in jquery how to enable and disable the html checkbox using jquery version < 1.5? how to disabled the input checkbox in jquery? disable text box jquery add disabled in checkbox textbox enabled without jquery enable disable textbox jquery disabled input checkbox jquery set checkboxfpr as disabled jquery enable disable textbox how to disable checkbox using jquery disable in css text box using jquery jquery disable textboxes checkbox disabled enabled jquery disabled checkbox jquery disable a checkboxes jquery how to disable checkbox in jquery using id disable check box using jquery by id disable check box using jquery how to textbox disabled in jquery make checkbox readonly or disabled in jquery disable checkbox input jquery checkbox disabled in jquery disabled chackobox jquery jquery css enabled textbox text box disable in jquery how to change the check box from disable to anable check enable all jquery onclick disable checkbox jquery enable checkbox jquery how to disable a checkbox in jquery disable textbox set in jquery jQuery set checkbox to disabled jquery disable checkbo jquery set checkbox disabled disabled checkbox in jquery jquery enable disable checkbox how to disable textbox in jquery how to enable checkbox checkbox enable disable jquery freeze a checkbox in jquery deactivate checkbox jquery disabled property for checkbox in jquery jquery make checbox unchangeable but not disable how to disable checkbox in jquery checkbox disabled jquery disable checkbox click jquery disable checkbox using jquery disable checkbox id jquery disable checkbox jquery how to disable textbox using jquery jquery make input disabled with variable value jquery disable textbox how to disable a textbox jquery disable textbox using jquery disable textbox in jquery disable textbox jquery textbox disabled jquery
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source