By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,480 Members | 1,808 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,480 IT Pros & Developers. It's quick & easy.

validate fields when a dynamic checkbox is selected

P: n/a
Hi All!

I am trying to make several fields in a HTML form validated, but only
when a dynamic checkbox is selected. I am not sure how to do this.

Here is a snippet of the dynamic checkbox code:
Set RSLIST = Server.CreateObject("ADODB.Recordset")
SQLLIST = "SELECT * FROM Newsletters ORDER BY Newsletter_Name"
RSLIST.Open SQLLIST, Conn, 1, 3
<%Do While Not RSLIST.EOF%>
<input type="checkbox" name="Newsletters"
value="<%=RSLIST("ID")%>"><%=RSLIST("Newsletter_Na me")%>

I would like to make three fields (company, phone_work, license)
mandatory when one of the "ID" (i.e. ID 2) is checked.

Please advise. Thanks for any assistance.


Oct 3 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
bobby1041 wrote on 03 okt 2005 in comp.lang.javascript:
Hi All!

Please do not multipost on usenet.

Crosposting is possible when appropriate.

The Netherlands.
(Replace all crosses with dots in my emailaddress)

Oct 3 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.