I have many checkboxs as below,
Coo
var mode = []; jQuery("input[name='mode[]']:checked").each(function(i) { mode.push($(this).val()); });