Reputation: 6324
var day = new Array();
$(':checkbox:checked').each(function(i){
day.push($(this).val());
});
alert(day);
which return this:
but I would like to get this:
`3`,`10`,`16`
thanks
Upvotes: 0
Views: 39
Reputation: 32532
It is in an array. Alerts just show arrays differently. try looking at it in console.log()
you will see
Upvotes: 0