Cascading combos

Hi. I found the PHP code attached for a cascading combos. I’d like to know how can I enable or disable the two radio button depending on the choice made with the combos.
Thank you
Emilio
[php]

Cascading combo example body { background-color: #FFFFFF; color: #000000; } a { color: #0000FF; text-decoration: underline; } a:visited { color: #800080; } a:active { color: #FF0000; } a:hover { color: #0000FF; text-decoration: underline; } #Combobox1 { border: 1px #C0C0C0 solid; background-color: #FFFFFF; color: #000000; font-family: Arial; font-size: 13px; } #Combobox2 { border: 1px #C0C0C0 solid; background-color: #FFFFFF; color: #000000; font-family: Arial; font-size: 13px; } #wb_Text1 { background-color: transparent; border: 0px #000000 solid; padding: 0; } #wb_Text1 div { text-align: left; } #wb_Text2 { background-color: transparent; border: 0px #000000 solid; padding: 0; } #wb_Text2 div { text-align: left; } Please select an option option1 option2 option3
Radio 1
Radio 2
[/php]

LOL, First, there is NO PHP code there! That is Javascript code. (As noted at the beginning of your code!)

Anyway, you use this: " document.getElementById(‘Combobox1’); " to access the combo-box control using Javascript. You can also use the save type of JS code to set a HTML radio button. Something like this:
document.getElementById(‘RadioButton1’).checked = true;

Hope that helps!

Sponsor our Newsletter | Privacy Policy | Terms of Service