Hey all, I'm new when it comes to javascript so please bear with me (but I think this is a simple answer anyway)
This is the layout I have on a website using ColdFusion:
RadioButton1 name=Q01 id=Q01A
Checkbox1 name=Q01A01 id=Q01A01
Checkbox2 name=Q01A02 id=Q01A02
Checkbox3 name=Q01A03 id=Q01A03
RadioButton2 name=Q01 id=Q01B
.
.
.
The 3 checkboxes described above belong to RadioButton1, and are only visible when a user selects RadioButton1. Now, this web page is going to display answers the user has already preselected on another visit (ie, if he chose radiobutton1 and checkbox2- then the page will display radiobutton1 checked and the other checkboxes display but just with checkbox2 checked).
Now, this is my question. A user wants to change their answers, perhaps, selecting RadioButton2 (therefore switching from RadioButton1). What I want are for the checkboxes (those listed under RadioButton1) to be unchecked and I've been told my best bet is client-side with Javascript.
I'm using ColdFusion so I believe I want to use the onChange event of the radiobutton. Can anyone give me any suggestions/hints?
Thanks for your input.
This is the layout I have on a website using ColdFusion:
RadioButton1 name=Q01 id=Q01A
Checkbox1 name=Q01A01 id=Q01A01
Checkbox2 name=Q01A02 id=Q01A02
Checkbox3 name=Q01A03 id=Q01A03
RadioButton2 name=Q01 id=Q01B
.
.
.
The 3 checkboxes described above belong to RadioButton1, and are only visible when a user selects RadioButton1. Now, this web page is going to display answers the user has already preselected on another visit (ie, if he chose radiobutton1 and checkbox2- then the page will display radiobutton1 checked and the other checkboxes display but just with checkbox2 checked).
Now, this is my question. A user wants to change their answers, perhaps, selecting RadioButton2 (therefore switching from RadioButton1). What I want are for the checkboxes (those listed under RadioButton1) to be unchecked and I've been told my best bet is client-side with Javascript.
I'm using ColdFusion so I believe I want to use the onChange event of the radiobutton. Can anyone give me any suggestions/hints?
Thanks for your input.