4,008
社区成员
发帖
与我相关
我的任务
分享
<form onsubmit="return form1_onsubmit(this)"> <input type="radio" name="photo_xg" value="非常好">非常好
<input type="radio" name="photo_xg" value="好">好
<input type="radio" name="photo_xg" value="一般">一般
<input type="radio" name="photo_xg" value="较差">较差
<input type="submit" value="提交" />
</form>
<script language="vbscript">
function form1_onsubmit(f)
if not f.photo_xg(0).checked and not f.photo_xg(1).checked and not f.photo_xg(2).checked and not f.photo_xg(3).checked then
msgbox "请选择一项!"
f.photo_xg(0).focus()
form1_onsubmit=false
end if
end function
</script>