checkbox problem
in the following code fragment, although the status window always displays the correct value, the if..else statement will always evaluates to false. If I switch 'if value="false")' to ' if value = "true")' the statement will alway evaluates to true. What am I doing wrong?
var national = new AW.UI.Checkbox; //national
national.setControlText("National");
national.setId("national");
national.setControlValuefalse);
national.onControlValueChanged = function(value){
window.status = "control value: " + value;
if (value = "false") {cnational.setControlText("N");}
else{cnational.setControlText("Y");}
}
var national = new AW.UI.Checkbox; //national
national.setControlText("National");
national.setId("national");
national.setControlValuefalse);
national.onControlValueChanged = function(value){
window.status = "control value: " + value;
if (value = "false") {cnational.setControlText("N");}
else{cnational.setControlText("Y");}
}
February 11,