Hi there,
I have a couple of radio buttons. The two values are Table and Chart. Now when the user clicks on Chart I want to enable another three radio buttons beneth it. I have written code that does this. But when the user clicks back on Table the three buttons stay enabled instead of becoming disabled...heres the code....any ideas?
function Enableoptions() {
if (document.reporter.chartcontent[0].disabled = true) {
document.reporter.chartcontent[0].disabled = false;
document.reporter.chartcontent[1].disabled = false;
document.reporter.chartcontent[2].disabled = false;
}
if (document.reporter.chartcontent[0].disabled = false) {
document.reporter.chartcontent[0].disabled = true;
document.reporter.chartcontent[1].disabled = true;
document.reporter.chartcontent[2].disabled = true;
}
} -------------------------------------
...what rhymes with month?
I have a couple of radio buttons. The two values are Table and Chart. Now when the user clicks on Chart I want to enable another three radio buttons beneth it. I have written code that does this. But when the user clicks back on Table the three buttons stay enabled instead of becoming disabled...heres the code....any ideas?
function Enableoptions() {
if (document.reporter.chartcontent[0].disabled = true) {
document.reporter.chartcontent[0].disabled = false;
document.reporter.chartcontent[1].disabled = false;
document.reporter.chartcontent[2].disabled = false;
}
if (document.reporter.chartcontent[0].disabled = false) {
document.reporter.chartcontent[0].disabled = true;
document.reporter.chartcontent[1].disabled = true;
document.reporter.chartcontent[2].disabled = true;
}
} -------------------------------------
...what rhymes with month?