JQuery Set Caixa de seleção verificada
//jQuery 1.6+ use
$('.checkbox').prop('checked', true);
//jQuery 1.5.x and below use
$('.checkbox').attr('checked', true);
Batman
//jQuery 1.6+ use
$('.checkbox').prop('checked', true);
//jQuery 1.5.x and below use
$('.checkbox').attr('checked', true);
//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
if ($('#check_id').is(":checked"))
{
// it is checked
}
//jQuery 1.6+ use:
$('.checkboxClass').prop('checked', true);
//jQuery 1.5.x and below use:
$('.checkboxClass').attr('checked', true);
//For jQuery 1.6 and above
$('#myCheckBoxID').prop('checked', true);
//For jQuery Before 1.6
$('#myCheckBoxID').attr('checked','checked');
<script>
//jQuery 1.6+ use
$('#checkbox').prop('checked', true);
//jQuery 1.5.x and below use
$('#checkbox').attr('checked', true);
</script>