var emps= $("input[name='emp ']:checked"); var employee= ""; emps.each(function(){ employee+= this.value+","; });