<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
<style>
table{
border-collapse:collapse;
border: 1px solid #ffffff;
width: 100%;
}
span{background:#ff00bb;cursor: pointer; }
td.left{ width:30%;background:#99dd33;}
td.right{ width:70%;background:#CCCC33;}
</style>
<script src="jquery.js"></script>
<script>
$(document).ready(function(){
$("span").click(function(){
$("#txt_div").html( "显示数据:<br>");
$("input[name='chk']:checked").each(function() {
$("#txt_div").append($(this).val() + "<br>");
});
});
});
</script>
</head>
<body>
<table>
<tr><td class="left">
<input name=chk type="checkbox" value="1">a1<br>
<input name=chk type="checkbox" value="2">a2<br>
<input name=chk type="checkbox" value="3">a3<br>
<input name=chk type="checkbox"value="4">a4<br>
<input name=chk type="checkbox" value="5">a5<br>
<input name=chk type="checkbox" value="6">a6<br>
<input name=chk type="checkbox" value="7">a7<br>
<input name=chk type="checkbox"value="8">a8<br>
<span id="span1">确定</span>
</td>
<td class="right">
<div id="txt_div">显示数据:<br></div>
</td><tr>
</table>
</body>
</html>