<input type="checkbox" id="box" value="sss1"/>
<input type="checkbox" id="box" value="sss2"/>
<input type="checkbox" id="box" value="sss2"/>
<input type="checkbox" id="box" value="sss2"/>
<input type="checkbox" id="box" value="sss2"/>
<input type="button" name="btnOK" value="确定"/>
<script for = btnOK event=onclick>
var value="";
for (var i=0;i<box.length;i++ ){
if(box[i].checked){ //判断复选框是否选中
value=value+box[i].value + " "; //值的拼凑 .. 具体处理看你的需要,
}
}
alert(value);//输出你选中的那些复选框的值
</script>
温馨提示:答案为网友推荐,仅供参考