<html>
<head>
<title></title>
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
$(function(){
$('#submit').click(function(){
if($(":checkbox[checked = true]").size()<1){
alert("最少選擇一個復(fù)選框!");
return false;
} alert('OK')
});
})
</script>
</head>
<body>
<input type="checkbox" >
<input type="checkbox" >
<input type="checkbox" >
<input type="checkbox" >
<input type="checkbox" >
<input type="checkbox" >
<input type="checkbox" >
<input type="checkbox" >
<input type="checkbox" >
<input type="checkbox" >
<input type="button" id="submit" value=" 提 交 ">
</body>
</html>!評論內(nèi)容需包含中文