...

View Full Version : Radio Buttons



lisa1980
01-25-2006, 04:21 PM
I have 2 radio buttons, I want to be able to click radio1 and that will disable dropdown boxes below.

this is what i have:


If rdostaightshift = True Then
cboStart1.Enable = false
End If

Thanks in advance

Mr J
01-25-2006, 10:21 PM
In Javascript you would go something like




function test(){

if(document.forms["formname"]["rdostaightshift"][1].checked==true){
document.forms["formname"]["cboStart1"].disabled=true
}
else{
document.forms["formname"]["cboStart1"].disabled=false
}

}


<form name="formname">

<input type="radio" name="rdostaightshift" onclick="test()">
<input type="radio" name="rdostaightshift" onclick="test()">

</form>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum