shanuragu
09-04-2003, 01:36 AM
Hi
I have a set of radio buttons , each radio button has a textarea & a text box associated with it.
First I have to validate for radio buttons & the respective text area & a text box (when a radio button is clicked respective text are & text boxes should not be empty).
How can I do this
Radio button & related text area & text boxes are displayed in the web page as follows
<tr>
<td width="75%" valign="top"><input type="radio" name="inv_desc_id" value="<%=rsDetails("inv_desc_id")%>" onclick="document.form.amt.value='<%=rsDetails("invoice_amt")%>'"><textarea rows="2" cols="47" name="inv_desc_<%=rsDetails("inv_desc_id")%>"><%=rsDetails("invoice_desc")%></textarea></td>
<td width="25%" align="right" valign="top" style="padding-right:10px"><input type="text" size="10" name="inv_amt_<%=rsDetails("inv_desc_id")%>" value="<%=objUtils.FormatString(CStr(rsDetails("invoice_amt")), "####0.00")%>"></td>
</tr>
please help
shara
I have a set of radio buttons , each radio button has a textarea & a text box associated with it.
First I have to validate for radio buttons & the respective text area & a text box (when a radio button is clicked respective text are & text boxes should not be empty).
How can I do this
Radio button & related text area & text boxes are displayed in the web page as follows
<tr>
<td width="75%" valign="top"><input type="radio" name="inv_desc_id" value="<%=rsDetails("inv_desc_id")%>" onclick="document.form.amt.value='<%=rsDetails("invoice_amt")%>'"><textarea rows="2" cols="47" name="inv_desc_<%=rsDetails("inv_desc_id")%>"><%=rsDetails("invoice_desc")%></textarea></td>
<td width="25%" align="right" valign="top" style="padding-right:10px"><input type="text" size="10" name="inv_amt_<%=rsDetails("inv_desc_id")%>" value="<%=objUtils.FormatString(CStr(rsDetails("invoice_amt")), "####0.00")%>"></td>
</tr>
please help
shara