<input type="radio" name="radio1" value="auto" checked>自动
<input type="radio" name="radio1" value="cold">制冷
<input type="radio" name="radio1" value="dry">抽湿
<input type="radio" name="radio1" value="hot">加热
<input type="button" name="mode" value="模式" onclick="chioseMode();">
<script>
function chioseMode(){
var nextMode;
for(var i=0;i<4;i++)
if(radio1[i].checked){
nextMode = i+1;
break;
}
if(nextMode==4)
nextMode = 0;
radio1[nextMode].checked = true;
}
</script>
<input type="radio" name="radio1" value="cold">制冷
<input type="radio" name="radio1" value="dry">抽湿
<input type="radio" name="radio1" value="hot">加热
<input type="button" name="mode" value="模式" onclick="chioseMode();">
<script>
function chioseMode(){
var nextMode;
for(var i=0;i<4;i++)
if(radio1[i].checked){
nextMode = i+1;
break;
}
if(nextMode==4)
nextMode = 0;
radio1[nextMode].checked = true;
}
</script>