Help,
How do I enable an ASP combo box when a user clicks the radio button alongside it. I've tried:
rdoSpec.Attributes.Add("onclick", String.Format("document.getElementById(cboSpec).disabled=!this.checked;", rdoSpec.ClientID))
in my page load but no joy.
It's complicated by the fact that I've actually got three options with a combo alongside each one and only want the combo alongside the selected radio to be selected. I figured one step at a time and that if I could get manage the above, I'll take the disabling from there.
Cheers,
Andy
How do I enable an ASP combo box when a user clicks the radio button alongside it. I've tried:
rdoSpec.Attributes.Add("onclick", String.Format("document.getElementById(cboSpec).disabled=!this.checked;", rdoSpec.ClientID))
in my page load but no joy.
It's complicated by the fact that I've actually got three options with a combo alongside each one and only want the combo alongside the selected radio to be selected. I figured one step at a time and that if I could get manage the above, I'll take the disabling from there.
Cheers,
Andy