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 :: javascript open page in same tab 
Javascript :: sequelize order by date 
Javascript :: swiper js cdn 
Javascript :: angular clone array without reference 
Javascript :: remove special characters from string javascript 
Javascript :: node get all files in folder 
Javascript :: sweet alert after click ok redirect 
Javascript :: convert hexadecimal to decimal js 
Javascript :: disable right click javascript 
Javascript :: remove required attribute jquery 
Javascript :: Storing Objects in HTML5 localStorage 
Javascript :: remove yellow warning react native emulator 
Javascript :: javascript run document ready 
Javascript :: javascript replace space by underscore 
Javascript :: javascript count words in string 
Javascript :: This error occurred during the build time and cannot be dismissed. 
Javascript :: regex get number inside parentheses 
Javascript :: if array is empty jquery 
Javascript :: add url query in js 
Javascript :: check if date time string is invalid date js 
Javascript :: automatically scroll to bottom of page 
Javascript :: how to set an attribute to ignore null value json c# 
Javascript :: navigate to url jquery 
Javascript :: adding a button in javascript 
Javascript :: how to reset checkbox jquery 
Javascript :: copy text to clipboard javascript 
Javascript :: find a number that is closest to a specific number in javascript 
Javascript :: js new line regex 
Javascript :: javascript move element in array to end 
Javascript :: javascript isset 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =