Horje
jquery checkbox set checked Code Example
jquery set checkbox checked
//jQuery 1.6+ use
$('.checkbox').prop('checked', true);
//jQuery 1.5.x and below use
$('.checkbox').attr('checked', true);
jquery set checkbox checked unchecked
//jQuery 1.6+ use
$('.checkbox').prop('checked', true);  //false for uncheck
//jQuery 1.5.x and below use
$('.checkbox').attr('checked', true);  //false for uncheck
jquery checkbox set checked
//For jQuery 1.6 and above
$('#myCheckBoxID').prop('checked', true);
//For jQuery Before 1.6
$('#myCheckBoxID').attr('checked','checked');
Setting “checked” for a checkbox with jQuery
$('.myCheckbox').prop('checked', true);
$('.myCheckbox').prop('checked', false);
set checkbox checked jquery
$("#checkboxid").prop('checked', true);  // Checks the box
$("#checkboxid").prop('checked', false); // Unchecks the box
set checkbox checked jquery
$("#checkboxid").attr('checked', true);




Javascript

Related
javascript angle equation of a line Code Example javascript angle equation of a line Code Example
how to select data attribute in javascript using queryselectorAll Code Example how to select data attribute in javascript using queryselectorAll Code Example
check the doc name in javascript Code Example check the doc name in javascript Code Example
open google map with latitude and longitude javascript Code Example open google map with latitude and longitude javascript Code Example
Delay js function Code Example Delay js function Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9