To get the value of the Value attribute, you can do something like this:
$("input[type='checkbox']").val();
Or, if you installed classor idfor it, you can:
$('#check_id').val();
$('.check_class').val();
However, it will return one and the same value regardless of whether it is marked or not, it can be confusing, as it differs from the behavior represented by the shape.
To check if this is checked or not, do:
if ($('#check_id').is(":checked"))
{
// it is checked
}
source
share