62,243
社区成员




<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
$(document).ready(function(){
$("#btn").click(function () {
$("input[type='checkbox']").each(function(i){ this.checked = true;
});
});//$("#btn").click
});//$(document).ready
</script>
</head>
<body>
newsletter<input type="checkbox" />
milkman<input type="checkbox" />
newsboy<input type="checkbox" />
<input type='button' id='btn' value='checkAll' />
</body>
</html>
$("input[@type='checkbox']").each(function(i){ this.checked = true;
})
$("#cb_canRead").each(function(){
this.checked = true;
})