troubleshooting Question

Checkbox and radio button validation

Avatar of MeenakshiDhar
MeenakshiDhar asked on
ASP
2 Comments1 Solution338 ViewsLast Modified:
Hi All,
I have radio buttons , checkboxes and one submit button in my form..

RD1
---Chk1
---Chk2
---Chk3

RD2
---Chk4
---Chk5
---Chk6

RD3
---Chk7
---Chk8
---Chk9

radio button here is "product name" and check boxes are "accessories" under that product.
So each product has some accessories...

all the radiobuttons and checkboxes are dynamically created according to the values in database...
e.g. if there are 3 products in the database, then 3 radiobuttons are displayed and then it checks for accessories in that product and displays them also..

so everything here is dynamically created.

Now my problem is--

since only one radio button can be selected at a time, say if user selects RD1 and then checks Chk4 or Chk5 , then on submitting the form, there should be one error message saying that u can select only Chk1, Chk2 or Chk3 if u select RD1.

And one more thing, if user switches from one radio button to another, then the checkbox under the previous one should be automatically clear...

Urgent help required...

Regards,
Meenakshi Dhar

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros