我在页面上有一组单选按钮和一个复选框,如下所示
<html>
<head>
<title>Languages</title>
<script type="text/javascript">
</script>
</head>
<body>
<span>What languages do you know?</span>
<form action="">
<div id="controlArea">
<input type="radio" name="lanRadio" value="radioRussian"><label for="radioRussian">Russian</label><br />
<input type="radio" name="lanRadio" value="radioEnglish"><label for="radioRussian">English</label><br />
<input type="radio" name="lanRadio" value="radioSpain"><label for="radioRussian">Spain</label><br />
<input type="radio" name="lanRadio" value="radioFrench"><label for="radioRussian">French</label><br />
<input type="checkbox" name="checkIn" value="CheckMore"><label for="CheckMore">More than 1</label><br />
</div>
</form>
</body>
我想要做的是,如果用户选中“超过 1 个”复选框,则所有单选按钮都必须变成复选框,并且用户必须能够选中更多选项。如果用户取消选中复选框,则所有复选框必须变回一组单选按钮。将单选按钮更改为复选框时,选定的单选按钮必须成为选中的复选框。