<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<script>
function check(radio)
{
if (radio.tag==1)
{
radio.checked=false;
radio.tag=0;
}
else
{
radio.checked=true;
radio.tag=1
}
}
</script>
<body>
<input type="radio" onclick="check(this);"/>切换radio状态
</body>
</html>
网友评论