js
Code
<script language="JavaScript">
function test() {
for (i=0;i<document.vote.rbresult.length;i++) {
if (document.vote.rbresult[i].checked) return true;
}
alert('请选择!')
return false
}
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<form name="vote" method="post" action="vote/result.asp"
onSubmit="windowOpener('')" target=surveywin>
<td align="center">
<font color="#CC0000"><b> </b></font>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="left" class="font9"><strong><font color="#CC0000">调查</font></strong>:请您协助填写此问题?</td>
</tr>
<tr>
<td align="center" class="font9"><font color="#CC0000"><b>
<input type="radio" name="rbresult" value="fgood">
</b></font>1用户<font color="#CC0000"><b>
<input type="radio" name="rbresult" value="fmid">
</b></font>2用户<font color="#CC0000"><b>
<input type="radio" name="rbresult" value="fbad">
</b></font>3用户
<input type="submit" name="Submit" value=" 投票 " class="boxfont" onClick="return test()"></td>
</tr>
</table>
</td></form>
</tr>
</table>
<script language="JavaScript">
function test() {
for (i=0;i<document.vote.rbresult.length;i++) {
if (document.vote.rbresult[i].checked) return true;
}
alert('请选择!')
return false
}
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<form name="vote" method="post" action="vote/result.asp"
onSubmit="windowOpener('')" target=surveywin>
<td align="center">
<font color="#CC0000"><b> </b></font>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="left" class="font9"><strong><font color="#CC0000">调查</font></strong>:请您协助填写此问题?</td>
</tr>
<tr>
<td align="center" class="font9"><font color="#CC0000"><b>
<input type="radio" name="rbresult" value="fgood">
</b></font>1用户<font color="#CC0000"><b>
<input type="radio" name="rbresult" value="fmid">
</b></font>2用户<font color="#CC0000"><b>
<input type="radio" name="rbresult" value="fbad">
</b></font>3用户
<input type="submit" name="Submit" value=" 投票 " class="boxfont" onClick="return test()"></td>
</tr>
</table>
</td></form>
</tr>
</table>