81,092
社区成员
发帖
与我相关
我的任务
分享
<html>
<head>
<script language="javascript">
function setValue(){
if(document.all.f2.checked){
document.all.f1.value="1";
}
else{
document.all.f1.value="0";
}
}
</script>
</head>
<body>
<input type="checkbox" name="f2" onclick="setValue();"/>
<input type="hidden" name="f1" value="0"/>
</body>
</html>