$('#checkbox_id:checked').val();
//if checkbox is selected than gets its value
var selected = [];
$('#checkboxes input:checked').each(function() {
selected.push($(this).attr('name'));
});
$('input[name="checkboxGroup"]:checked'); // returns checked input objects
$("#check").change(function () {
if (this.checked) {
//I am checked
name_val = $('#name').val();
$('#player').val(name_val);
} else {
//I'm not checked
$('#player').val('');
}
});