shanuragu
09-02-2003, 06:59 AM
I have a set of check boxes. Each check box is associsted with another set of radio buttons. First validation for the check boxes will be done (select at least one chk box) which is working fine. How can I validate the radio buttons for a perticular check box.
here is the sample code as how radio buttons & check boxes are related.
<input type="checkbox" name="service_id" checked id="service_id_<%=rsServices("service_id")%>" tabindex="12" value="<%=rsServices("service_id")%>" onclick="toggleServices(<%=rsServices("service_id")%>)"><%=rsServices("service_nm")%></font>
<input type="radio" id="cos_id_<%=rsCoS("service_id")%>" name="cos_id_<%=rsCoS("service_id")%>" tabindex="13" value="<%=rsCoS("cos_id")%>"><%=rsCoS("cos_nm")%></font>
value of service_id will be same for both chk box and radio button.
Please help
shara
here is the sample code as how radio buttons & check boxes are related.
<input type="checkbox" name="service_id" checked id="service_id_<%=rsServices("service_id")%>" tabindex="12" value="<%=rsServices("service_id")%>" onclick="toggleServices(<%=rsServices("service_id")%>)"><%=rsServices("service_nm")%></font>
<input type="radio" id="cos_id_<%=rsCoS("service_id")%>" name="cos_id_<%=rsCoS("service_id")%>" tabindex="13" value="<%=rsCoS("cos_id")%>"><%=rsCoS("cos_nm")%></font>
value of service_id will be same for both chk box and radio button.
Please help
shara