I have two radio buttons and two checkboxes in a form.
I'm trying to write some code so that when a radio button is selected,
its corresponding checkbox is disabled.
My code looks like this:
function radioClicked(in dex)
{
document.table_ config_form.my_ checkbox[index].disabled = true;
}
function radioChanged(in dex)
{
document.table_ config_form.my_ checkbox[index].disabled = false;
}
The radios' onClick calls radioClicked() with the appropriate index.
The radios' onChange calls radioChanged() with the appropriate index.
It works fine in every respect except one: When the checkbox is
"disabled", it looks grayed out. However, when the user clicks on the
"disabled" checkbox, it behaves just like an enable checkbox! It
immediately goes back to white and a check appears in the checkbox.
If I eliminate the radioChanged() function, however, the disabled
checkboxes behave propertly.
I'm using IE 6.0 on W2K.
Many thanks for any suggestions,
David
I'm trying to write some code so that when a radio button is selected,
its corresponding checkbox is disabled.
My code looks like this:
function radioClicked(in dex)
{
document.table_ config_form.my_ checkbox[index].disabled = true;
}
function radioChanged(in dex)
{
document.table_ config_form.my_ checkbox[index].disabled = false;
}
The radios' onClick calls radioClicked() with the appropriate index.
The radios' onChange calls radioChanged() with the appropriate index.
It works fine in every respect except one: When the checkbox is
"disabled", it looks grayed out. However, when the user clicks on the
"disabled" checkbox, it behaves just like an enable checkbox! It
immediately goes back to white and a check appears in the checkbox.
If I eliminate the radioChanged() function, however, the disabled
checkboxes behave propertly.
I'm using IE 6.0 on W2K.
Many thanks for any suggestions,
David
Comment