Every line of 'jquery checkbox checked' 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.
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 }
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 }
78 function set_checkbox_value(id, value) { 79 $('#' + id).prop('checked', value); 80 }
12 function uncheckCheckBox(checkbox){ 13 $(checkbox).removeAttr("checked"); 14 }
74 function set_radio_checked(id) { 75 $('#' + id).prop('checked', true); 76 }
191 function isChecked(checkboxElement) { 192 return checkboxElement.hasClass(CHECKED_CSS); 193 }
110 function isChecked(id,name){ 111 var elem = goog.dom.getElement(id); 112 return elem.checked; 113 };
212 function updateCheckbox() { 213 $('#charts input, #components input, #coords input').each(function () { 214 $(this).attr('checked', $(this).parent().hasClass('checked')); 215 }); 216 }
5 function checkUncheck (checkbox) { 6 // body... 7 var property; 8 if ($(checkbox).is(':checked') == false){ 9 $(checkbox).removeAttr("checked"); 10 property = "uncheck"; 11 } 12 else{ 13 $(checkbox).attr("checked",""); 14 property="check"; 15 } 16 17 var notediv = $(checkbox).parents(".tab-pane"); 18 19 var note_id = ($(notediv).attr('id'));// note id 20 var todo_item = ($(checkbox).parent().text()); // todo item text 21 var content_div = $(checkbox).parents(".note-content"); 22 var body_html = content_div.html();// body_html of the note 23 var todo_item_id = $(checkbox).parent().attr("id"); 24 console.log("id is "+ todo_item_id); 25 $.ajax({ 26 url: "/checkuncheck/", 27 cache: false, 28 type: "POST", 29 data: {note_id : note_id, property: property, body_html: body_html, todo_item: todo_item,todo_item_id:todo_item_id}, 30 success: function(result){ 31 console.log(result); 32 }, 33 error: function(result){ 34 console.log(result); 35 } 36 }); 37 }
137 createCheckbox(isChecked) { 138 this._div. 139 append(this._check_box). 140 append(this._label). 141 append(this._link). 142 append(this._infospan). 143 append(this._remove_filter_list_label); 144 145 this._container.append(this._div); 146 147 this._bindActions(); 148 149 if (isChecked) { 150 this._check_box.prop("checked", true); 151 this._check_box.trigger("change"); 152 } 153 }