<input type="checkbox" name="idd" value="111" />a
<input type="checkbox" name="idd" value="222" />b
<input type="checkbox" name="idd" value="333" />c
<button onclick="toVote()">投票</button>
function toVote(){
var voteList = [];
$('input:checkbox').each(function(){
if($(this).is(':checked')==true){
voteList.push($(this).val());
}
})
console.log(voteList);
}