SyntaxFix
Write A Post
Hire A Developer
Questions
You should use map for this.
$('input[type=checkbox]:checked').map(function(i, e) { return $(e).val(); });