Guys,
Well i have a littel issue thats bugging me now, Ok here goes
I have a form which has a number of radio buttons, then I have some normal buttons that are sumbit and reset.
What I want to do in my
JSP is when one radio button is selected to enable the submit/reset, and not before.
How do i do this.
code snippet below:
The loop creates a varible number of radio buttons, i then have one submit, and one reset button each, which need enabling only when I have selected one of the radio buttons.
LOOP--------->
<tr>
<td width="6%" bordercolor="#C0C0C0" style="border-bottom:1px solid #C0C0C0; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; " align="center" height="17">
<form method="POST" onclick action ="withdraw.jsp?&username=<%= username%>&paper_id=<%=paper_id%>&paper_title=<%=paper_title%>&userType=<%=userType%>">
<p align="center">
<input type="radio" value="V1" name="R1"> </p>
</td>
<td width="8%" bordercolor="#C0C0C0" style="padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; border-bottom-style:solid; border-bottom-width:1px" align="center" height="17">
<p><font face="Arial"><%= paper_id %></font></p>
</td>
<td width="10%" bordercolor="#C0C0C0" style="padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; border-bottom-style:solid; border-bottom-width:1px" align="center" height="17">
<p><font face="Arial"><%= version %></font></p>
</td>
<td width="33%" bordercolor="#C0C0C0" style="padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; border-bottom-style:solid; border-bottom-width:1px" align="center" height="17">
<p align="left"><font face="Arial"><%=paper_title %></font></p>
</td>
<td width="13%" bordercolor="#C0C0C0" style="padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; border-bottom-style:solid; border-bottom-width:1px" align="center" height="17">
<p align="center"><font face="Arial"><%= paper_status %></font></p>
</td>
<td width="15%" bordercolor="#C0C0C0" style="padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; border-bottom-style:solid; border-bottom-width:1px" align="center" height="17">
<font face="Arial"><%= date_submitted %></font> </td>
<td width="7%" bordercolor="#C0C0C0" style="padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; border-bottom-style:solid; border-bottom-width:1px" align="center" height="17">
<p><font face="Arial"><%=descision %></font></p>
</td>
</tr>
<--------LOOP
</table>
<input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"><p>
</p>
</form>
Thanks in advance
Zein