JohnnyBGoode
Programmer
This will disable a checkbox:
document.FormName.CheckboxName.disabled = true;
This will disable the 3 occurences of a radio button:
document.FormName.RadioButtonName[0].disabled = true;
document.FormName.RadioButtonName[1].disabled = true;
document.FormName.RadioButtonName[2].disabled = true;
Is there a way to disable a set of radio buttons without having to do it for each different value? Is there a way to do it similar to:
document.FormName.RadioButtonName['all'].disabled = true;
I have already tried that, but it doesn't work. What is the correct syntax to accomplish this?
Thanx in advance.
document.FormName.CheckboxName.disabled = true;
This will disable the 3 occurences of a radio button:
document.FormName.RadioButtonName[0].disabled = true;
document.FormName.RadioButtonName[1].disabled = true;
document.FormName.RadioButtonName[2].disabled = true;
Is there a way to disable a set of radio buttons without having to do it for each different value? Is there a way to do it similar to:
document.FormName.RadioButtonName['all'].disabled = true;
I have already tried that, but it doesn't work. What is the correct syntax to accomplish this?
Thanx in advance.