<script>
$(function(){
$('#btn').click(function(){
var vals = [];
$('.weapon:checked').each(function(key, cbox) {
vals.push(cbox.value);
})
alert(vals)
})
})
</script>
1 <input type="checkbox" value="1" class="weapon" /> <br/>
2 <input type="checkbox" value="2" class="weapon" /> <br/>
3 <input type="checkbox" value="3" class="weapon" /> <br/>
4 <input type="checkbox" value="4" class="weapon" /> <br/>
5 <input type="checkbox" value="5" class="weapon" /> <br/>
6 <input type="checkbox" value="6" class="weapon" /> <br/>
<input type="button" id="btn" value="check" />