Javascript code to uncheck checkboxes based on selection of other checkboxes

Hi,

We are programming a menu-based conjoint task.
We have formatted an HTML table, with checkboxes within the cells.
For example:


<input type="checkbox" name="MBC1_atrribute1_2" value="1">

Respondents make several choices to compose an ideal proposition.
So if a respondent selects level 1 within attribute 1, the checkbox for level 2 and/or 3 should be unchecked, and vice versa.
And finally there is none option, which should automatically uncheck al other checkboxes.
We cannot get this to work.
Can you help us with a javascript code to achieve this?
Thanks!

Resolved
10 replies