JabbaTheNut
Programmer
I used the following code to uncheck all radio buttons in a RadioButtonList and to disable the RadioButtonList:
//uncheck radio buttons
for (i=0; i<document.form1.radioname.length; i++) {
document.form1.radioname.checked = "false";
}
//disable RadioButtonList
document.getElementById("radioname"
.disabled = "true";
This works great. The problem is that I cannot re-enable the RadioButtonList. I have tried each of the following:
document.getElementById("radioname"
.disabled = "false";
document.getElementById("radioname"
.enabled = "true";
document.form1.radioname.disabled = "false";
document.form1.radioname.enabled = "true";
However, none of these worked. What is the proper syntax to re-enable the RadioButtonList?
Thanks in advance
//uncheck radio buttons
for (i=0; i<document.form1.radioname.length; i++) {
document.form1.radioname.checked = "false";
}
//disable RadioButtonList
document.getElementById("radioname"
This works great. The problem is that I cannot re-enable the RadioButtonList. I have tried each of the following:
document.getElementById("radioname"
document.getElementById("radioname"
document.form1.radioname.disabled = "false";
document.form1.radioname.enabled = "true";
However, none of these worked. What is the proper syntax to re-enable the RadioButtonList?
Thanks in advance