Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

disable checkbox in jquery code example

Example: 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);
  }
}

Tags:

Javascript Example

Related

how to select max date record in oracle code example laravel carbon now year code example user input box html code example how to list permutations in a set code example extension chrome keyboard shortcuts code example php candition exercise code example stop text from being selectable css code example string split multiple delimiters java code example rclone push code example c++ find max element of vector by value code example css style background image full screen code example where to buy hcmc stock code example

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy