C
CreativeMind
hi
i have following code but problem is that when i debug both checkboxes
have disabled property always false whether it is checked or
unchecked..thx for help.
function checkFinance(){
var
chk1=document.getElementById("_ctl0_ContentPlaceHolder2_chkFinance");
var
chk2=document.getElementById("_ctl0_ContentPlaceHolder2_chkMortgage");
var
cbo1=document.getElementById("_ctl0_ContentPlaceHolder2_ddlFinance");
var
cbo2=document.getElementById("_ctl0_ContentPlaceHolder2_ddlMortgage");
var cbo1val=cbo1.value;
var cbo2val=cbo2.value;
if(!chk1.disabled){
cbo1.value=cbo1val;
cbo1.disabled=true;
}
else
cbo1.disabled=false;
if(!chk2.disabled){
cbo2.value=cbo2val;
cbo2.disabled=true;
}
else
cbo2.disabled=false;
return true;
}
i have following code but problem is that when i debug both checkboxes
have disabled property always false whether it is checked or
unchecked..thx for help.
function checkFinance(){
var
chk1=document.getElementById("_ctl0_ContentPlaceHolder2_chkFinance");
var
chk2=document.getElementById("_ctl0_ContentPlaceHolder2_chkMortgage");
var
cbo1=document.getElementById("_ctl0_ContentPlaceHolder2_ddlFinance");
var
cbo2=document.getElementById("_ctl0_ContentPlaceHolder2_ddlMortgage");
var cbo1val=cbo1.value;
var cbo2val=cbo2.value;
if(!chk1.disabled){
cbo1.value=cbo1val;
cbo1.disabled=true;
}
else
cbo1.disabled=false;
if(!chk2.disabled){
cbo2.value=cbo2val;
cbo2.disabled=true;
}
else
cbo2.disabled=false;
return true;
}