Every line of 'remove checked attribute 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.
12 function uncheckCheckBox(checkbox){ 13 $(checkbox).removeAttr("checked"); 14 }
190 setChecked(el /** TODO #9100 */, value) { el.checked = value; }
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 }
110 function isChecked(id,name){ 111 var elem = goog.dom.getElement(id); 112 return elem.checked; 113 };
136 function toggle_checkbox(el){ 137 if(el instanceof $){ 138 if(!el.length) return; 139 for(let element of el){ 140 toggle_checkbox(element); 141 } 142 return; 143 } 144 if(el instanceof NodeList){ 145 for(let ecl of el){ 146 toggle_checkbox(ecl); 147 } 148 return; 149 } 150 if(el.hasAttribute('checked')){ 151 el.removeAttribute('checked'); 152 } else { 153 el.setAttribute('checked', true); 154 } 155 }
19 public set checked(value: boolean){ 20 if(!value){ 21 this.el.removeAttribute("checked"); 22 }else{ 23 this.el.setAttribute("checked", "checked"); 24 } 25 }
11 function delChecked(sNode){ 12 var index = sNode.selectedIndex; 13 var option = sNode.options[index]; 14 option.selected = false; 15 document.getElementById("allRole").add(option); 16 setRole(); 17 }
1 function checkAll(checkbox, stub) { 2 c = 0; 3 for (i = 0, n = checkbox.form.elements.length; i < n; i++) { 4 e = checkbox.form.elements[i]; 5 if (e.type == checkbox.type) { 6 if ((stub && e.name.indexOf(stub) == 0) || !stub) { 7 e.checked = checkbox.checked; 8 c += (e.checked == true ? 1 : 0); 9 } 10 } 11 } 12 if (checkbox.form.boxchecked) { 13 checkbox.form.boxchecked.value = c; 14 } 15 return true; 16 }
78 function set_checkbox_value(id, value) { 79 $('#' + id).prop('checked', value); 80 }
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 }