$('input[name="rootMenu"]').each(function () { if (this.checked) { chk_value += this.value + "$"; } }); alert(chk_value); chk_value.split(",");