<SCRIPT LANGUAGE="JavaScript">
function check(form) {
var checkit = true
for (var i=0;i<form.sel.length;i++) {
form.sel[i].checked?checkit=true:checkit=false;
}
if (checkit) {return true} else {alert("please select one");return false}
}
</SCRIPT>
<form name="form1" onsubmit="return check(this)">
<input name="sel" type="radio" value="selA">A
<input name="sel" type="radio" value="selB">B
<input name="sel" type="radio" value="selC">C
<INPUT TYPE="submit" VALUE="submit">
</form>
本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請
點擊舉報。