De-select checkbox onclick on another checkbox
Posted: Mon Oct 01, 2007 3:35 am
Hi,
I have a registration form which displays a list of dietary requirements as checkboxes.
i.e.
1. No requirements
2. Vegetarian
3. No fish etc...
I've already setup some PHP to check whether user has "checked" No requirements and any additional diets, the code then marks this as an error.
My question is how can de-select "No requirements" if any other diet is then selected? I know this will involve js I just dont know how to code it.
Thanks.
I have a registration form which displays a list of dietary requirements as checkboxes.
i.e.
1. No requirements
2. Vegetarian
3. No fish etc...
I've already setup some PHP to check whether user has "checked" No requirements and any additional diets, the code then marks this as an error.
My question is how can de-select "No requirements" if any other diet is then selected? I know this will involve js I just dont know how to code it.
Thanks.