Click to See Complete Forum and Search --> : Change Botton in <FORM> - How?


malangpor
01-26-2003, 11:23 PM
Change Botton in <FORM> - How?

I have 3 radio botton and 1 select area.
If i have to selected :
At <input type="radio" name="First Radio Botton" value="a">
Or <input type="radio" name="Second Radio Botton" value="b">
Or <input type="radio" name="Third Radio Botton" value="c">

It will be show :
<select name="List"> at the same select area.
This list should be depend on the input radio botton.

How to do it ?

Jan 27, 2002

jpmoriarty
01-27-2003, 05:17 AM
Humm, i think you're going to have to explain that one again.

I think though that if you want select buttons where you can only select ONE of the options, you need to give them all the same name:

<input type="radio" name="select_button" value="a">
<input type="radio" name="select_button" value="b">
<input type="radio" name="select_button" value="c">

otherwise it will let you select each of them. Then your variable "select_button" will take the value a, b or c depending on which one you selected.

I'm not sure what you mean by :"It will be show : <select name="List"> at the same select area. This list should be depend on the input radio botton. " Do you mean that you have three different lists, and depending on what button is selected a different list is displayed? I presume you could do this with hidden div's if you wanted and javascript to show or hide each one. Is that the idea?