Hello
I have a few radiobuttonlists on a form and on load i am checking if the selected item has a specified value, then disable the radiobuttonlist.
I step through the code line by line and the last one executed is "ListControl.disabled = true;", but the control is not disabled. Could you help?
Thanks
I have a few radiobuttonlists on a form and on load i am checking if the selected item has a specified value, then disable the radiobuttonlist.
Code:
function IterateListControl(ListControl,value)
{
for (i=0; i<ListControl.length;i++)
{
if (ListControl[i].checked==false)
{
ListControl.disabled = true;
}
else if (ListControl[i].checked==true)
{
if (ListControl[i].value == value)
{
ListControl.disabled = true;
}
else {ListControl.disabled = false;}
}
}
}
function OnLoad(textbox,radio)
{
var storeylist = document.PropertyDetails.rdbStoreyList;
IterateListControl(storeylist,8);
.
.
.
I step through the code line by line and the last one executed is "ListControl.disabled = true;", but the control is not disabled. Could you help?
Thanks