get value from a checkbox in jquery code example
Example 1: get value of all checked boxes jquery
var values = $('input[name=grepperRocks]:checked')
.map(() => { return this.value }).get();
Example 2: get the value of a checkbox jquery
$("input[type='checkbox']").val();
$('#check_id').val();