selective drop down menu's

windows

Guest
Hia, This is probably very simple but I don't seem to be able to find the answer anywhere.<br />
What I need is the following:<br />
<br />
3 radio buttons, options A B and C, only 1 selectable.<br />
If option A is selected then in a seperate drop down menu options 1-10 are selectable.<br />
If option B is selected then in the same seperate drop down menu options 11-20 are selectable.<br />
Option C gives 21-30.<br />
<br />
Just a way of cutting down the amount of options that are available.<br />
<br />
Thanks in advance<!--content-->Do something like this in your radio button declaration.<br />
<br />
<input type="radio" name="rd" value="A" onclick="display('A');">A<br />
<br />
then in the javascript code section<br />
<br />
define a method display(val)<br />
<br />
function display(val){<br />
//in here disable or enable the select box<br />
if(val=="A"){<br />
document.formName.selectBoxA.disabled = true;<br />
<br />
}<br />
}<br />
<br />
and set all others to false.<br />
<br />
Hope this helps<br />
<br />
Khalid<!--content-->
 
Back
Top