Every line of 'onchange checkbox jquery' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
5 function checkboxChanged(checkboxInput) { 6 var $rgbaInput = $(checkboxInput).siblings('input.cascade-rgba'); 7 var $colorInput = $(checkboxInput).siblings('input[type="color"]'); 8 if (checkboxInput.checked || checkboxInput.disabled) { 9 $rgbaInput.addClass('disabled'); 10 $colorInput.addClass('disabled'); 11 } else { 12 $rgbaInput.removeClass('disabled'); 13 $colorInput.removeClass('disabled'); 14 } 15 }
3 function check_checkbox (checkbox) { 4 if (checkbox.prop('checked')) { 5 checkbox.parents('label.checkbox').addClass('checkbox_state_cheked'); 6 } else { 7 checkbox.parents('label.checkbox').removeClass('checkbox_state_cheked'); 8 } 9 }
78 function set_checkbox_value(id, value) { 79 $('#' + id).prop('checked', value); 80 }
212 function updateCheckbox() { 213 $('#charts input, #components input, #coords input').each(function () { 214 $(this).attr('checked', $(this).parent().hasClass('checked')); 215 }); 216 }
35 _checkboxChanged(e) { 36 const target = e.path[0]; 37 const category = target.getAttribute('category'); 38 const name = target.hasAttribute('name') ? target.getAttribute('name') : target.innerText.trim(); 39 checklist.value[category].find(task => { 40 if (task.name === name) { 41 task.complete = target.checked; 42 return true; 43 } 44 45 return false; 46 }); 47 }
12 function uncheckCheckBox(checkbox){ 13 $(checkbox).removeAttr("checked"); 14 }
26 updateCheckbox() { 27 const { props, refElements } = this; 28 Object.keys(refElements).forEach(function(refName) { 29 const checkbox = ReactDOM.findDOMNode(refElements[refName]); 30 let indeterminate; 31 // Single checkbox 32 if (props.name === refName) { 33 indeterminate = props.indeterminate; 34 } 35 36 // Multiple checkboxes 37 if (Util.isArray(props.startValue)) { 38 indeterminate = Util.find(props.startValue, function(item) { 39 return item.name === refName; 40 }).indeterminate; 41 } 42 43 if (indeterminate != null) { 44 checkbox.indeterminate = indeterminate; 45 } 46 }); 47 }
18 function updateSelected(checkbox) { 19 var newList = updateChecks(checkbox); 20 setWbsIdList(newList); 21 }
84 public registerOnChange(fn: void): void { 85 this.onChangeCallback = fn; 86 }
32 handleChange(domEvent) { 33 this.props.onChange(domEvent); 34 }