Caixa de seleção JQuery Valor verificado
if ($('#check_id').is(":checked"))
{
// it is checked
}
Fantastic Fly
if ($('#check_id').is(":checked"))
{
// it is checked
}
$('#checkbox_id:checked').val();
//if checkbox is selected than gets its value
console.log($('input[name="locationthemes"]:checked').serialize());
//or
$('input[name="locationthemes"]:checked').each(function() {
console.log(this.value);
});
$('#grepperRocks').prop('checked', true);
$("input[type='checkbox']").val();
$('#check_id').val();
var grenval = $('.green').val();
$('.showCheckedValue').text(redval+'&'+grenval );