SyntaxFix
Write A Post
Hire A Developer
Questions
var fav = []; $.each($("input[name='name']:checked"), function(){ fav.push($(this).val()); });
It will give you the value separeted by commas