<input id="remark1" name="remark" type="checkbox" value="v1"/>v1
<input id="remark2" name="remark" type="checkbox" value="v2"/>v2
<input id="remark3" name="remark" type="checkbox" value="v3"/>v3
<input id="remark4" name="remark" type="checkbox" value="v4"/>v4
js代码:
var remarks;
$('input[name="remark"]:checked').each(function(i){
if(0==i){
remarks = $(this).val();
}else{
remarks += (","+$(this).val());
}
});