I have radio buttons , checkboxes and one submit button in my form..
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...