As follows:
$("#btn5").click(function()
{
var str="";
$("[name='checkbox'][checked]").each(function() ' To get an array
{
str+=$(this).val()+","; ' To iterate over groups
//alert($(this).val());
}) As follows:
$("#btn5").click(function()
{
var str="";
$("[name='checkbox'][checked]").each(function() ' To get an array
{
str+=$(this).val()+","; ' To iterate over groups
//alert($(this).val());
})