<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="jquery-1.4.4.js" type="text/javascript"></script>
<script type="text/javascript">
$().ready(
function()
{
$("#btn").bind("click",function()
{
var arr=new Array();
$("input[name=‘ck1‘]:checked").each( function(){
arr.push($(this).val());
});
//array.push($(this).val());
alert(arr.join(‘,‘));
//alert("ok");
for(var i=0;i<arr.length;i++)
{
alert(arr[i]);
}
}
)
}
)
</script>
</head>
<body>
<input type="checkbox" name="ck1" id="1c" value=‘1‘>1</input>
<input type="checkbox" name="ck1" id="2c" value=‘2‘>2</input>
<input type="checkbox" name="ck1" id="3c" value=‘3‘>3</input>
<input type="checkbox" name="ck1" id="4c" value=‘4‘>4</input>
<input type="checkbox" name="ck1" id="5c" value=‘5‘>5</input>
<input type="checkbox" name="ck1" id="6c" value=‘6‘>6</input>
<input type="button" id="btn" value="提交"/>
</body>
</html>