Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

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);
  }
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: delay in javascript 
Javascript :: ajax get request 
Javascript :: get random number with min and max 
Javascript :: how to use datepipe in ts file 
Javascript :: javascript clear div 
Javascript :: javascript check if undefined 
Javascript :: swal is not defined 
Javascript :: javascript style background color 
Javascript :: check if checkbox is checked jquery 
Javascript :: javascript random number between 1 and 10 
Javascript :: Slick slider arrows change 
Javascript :: return json with jango 
Javascript :: click to copy react 
Javascript :: js replace space 
Javascript :: javascript selection sort 
Javascript :: how to know connected internet in js 
Javascript :: remove all inline css jquery 
Javascript :: javascript get table row count 
Javascript :: javascript regex french phone number 
Javascript :: check if a date time string is a valid date in js 
Javascript :: js scroll to bottom 
Javascript :: set port in react app 
Javascript :: warning ../../../package.json no license field 
Javascript :: react native hide stack navigator title 
Javascript :: content type json 
Javascript :: react doesnt load local images but external does 
Javascript :: js is function 
Javascript :: token invalid discord bot 
Javascript :: js get number of keys in object 
Javascript :: js get custom attribute 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =