62,271
社区成员
发帖
与我相关
我的任务
分享
<script src="../JS/jquery-1.4.2.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
$("input[type='checkbox']").click(function() {
if ($(this).is(":checked")) {
$(this).siblings().attr("disabled", "disabled");
}
else {
$(this).siblings().removeAttr("disabled");
}
});
});
</script>
<div>
<input type=checkbox value=1 />
<input type=checkbox value=2 />
<input type=checkbox value=3 />
</div>
