Hide and Show Div Tag Content Based on Radio Button Selection
Posted on 2004-09-27
I want to have something like the following radio button list on a webpage:
O Option 1
This is a description of option 1
O Option 2
This is a description of option 2
O Option 3
This is a description of option 3
O Option 4
This is a description of option 4
Whenever an option is selected I would like for it to expand downward, pushing everything else down. Inside the expansion would be a DIV containing a html table with form elements. Clicking a different option would then close the previous one and expand the newly selected one. If this were to work, would it be possible for me to be able to get the values of the form elements that are contained within the DIV tags?
Also, I would like this to be able to work in Netscape or IE.