Gerson
0
Q:

get value of selected checkbox jquery

$('#checkbox_id:checked').val();
//if checkbox is selected than gets its value
3
console.log($('input[name="locationthemes"]:checked').serialize());

//or

$('input[name="locationthemes"]:checked').each(function() {
   console.log(this.value);
});
1
var selected = [];
$('#checkboxes input:checked').each(function() {
    selected.push($(this).attr('name'));
});
0
var values = $('input[name=grepperRocks]:checked')
               .map(() => { return this.value }).get();
0

New to Communities?

Join the community