Why doesn't this simple script work?
when individual dealer is selected, it works fine with the 2 list boxes disabled, but when i switch back to all dealers, only out of compliance or brand it won't enable them back. it does enable the profit center back. Please help! thanks
<script>
function disable(newVal)
{
if (newVal == "All Dealers" || newVal == "Only Out of Compliance" || newVal == "Brand")
{ rdForm.ProfitCenter.disabled=true;}
{ rdForm.TerminalCity.disabled=false;}
{ rdForm.Brand.disabled=false;}
if (newVal == "Individual Dealer")
{ rdForm.ProfitCenter.disabled=false;}
{ rdForm.TerminalCity.disabled=true;}
{ rdForm.Brand.disabled=true;}
}
</script>
when individual dealer is selected, it works fine with the 2 list boxes disabled, but when i switch back to all dealers, only out of compliance or brand it won't enable them back. it does enable the profit center back. Please help! thanks
<script>
function disable(newVal)
{
if (newVal == "All Dealers" || newVal == "Only Out of Compliance" || newVal == "Brand")
{ rdForm.ProfitCenter.disabled=true;}
{ rdForm.TerminalCity.disabled=false;}
{ rdForm.Brand.disabled=false;}
if (newVal == "Individual Dealer")
{ rdForm.ProfitCenter.disabled=false;}
{ rdForm.TerminalCity.disabled=true;}
{ rdForm.Brand.disabled=true;}
}
</script>