I have many checkboxs as below,
Coo
var values = ""; $("checkbox[name=areaofinterest]").each(function() { values += $(this).val() + ","; }); values = values.substring(0, values.length - 2);