代码如下:
<SCRIPT LANGUAGE="JavaScript">
function change(){
var frm = document.forms[0];
var radio = frm["test"];
for(var i=0; i<radio.length; i++) {
radio[i].checked = false;
}</SCRIPT>
<form>
<INPUT TYPE="radio" NAME="test" value="西瓜" checked>西瓜
<INPUT TYPE="radio" NAME="test" value="葡萄">葡萄
</form>