Click to See Complete Forum and Search --> : selective drop down menu's


fras
03-19-2003, 08:01 AM
Hia, This is probably very simple but I don't seem to be able to find the answer anywhere.
What I need is the following:

3 radio buttons, options A B and C, only 1 selectable.
If option A is selected then in a seperate drop down menu options 1-10 are selectable.
If option B is selected then in the same seperate drop down menu options 11-20 are selectable.
Option C gives 21-30.

Just a way of cutting down the amount of options that are available.

Thanks in advance

khalidali63
03-19-2003, 08:33 AM
Do something like this in your radio button declaration.

<input type="radio" name="rd" value="A" onclick="display('A');">A

then in the javascript code section

define a method display(val)

function display(val){
//in here disable or enable the select box
if(val=="A"){
document.formName.selectBoxA.disabled = true;

}
}

and set all others to false.

Hope this helps

Khalid