get checkbox value by name in jquery code example
Example 1: get the value of a checkbox jquery
$("input[type='checkbox']").val();
$('#check_id').val();
Example 2: how to get checkbox value in jquery
var grenval = $('.green').val();
$('.showCheckedValue').text(redval+'&'+grenval );