日期:2014-05-16 浏览次数:20712 次
<script src="js/jquery-1.3.2.js"></script>
<script>
function doit(){
alert($("input[name='ChooseOne']:checked").length);
}
</script>
<input type="checkbox" name="ChooseOne" >
<input type="checkbox" name="ChooseOne" >
<input type="checkbox" name="ChooseOne" >
<input type="checkbox" name="ChooseOne" >
<input type="checkbox" name="ChooseOne" >
<input type="button" value="get" onclick="doit()">