This topic is locked
[SOLVED]

 enable when checkbox checked

3/12/2012 4:37:13 PM
ASPRunnerPro General questions
S
stiven author

Hello everyone,
I have a field that is disabled when the page loads but i want to enabled the field when the user checks the check box this is the code but it's not working, no error in firebug



var ctrlPadre = Runner.getControl(pageid, 'clergy');

ctrlPadre.setDisabled();
var ctrlCura = Runner.getControl(pageid, 'padre');
ctrlCura.on('change', function(e){

if (this.getValue() == 'on'){

ctrlPadre.setEnabled();

}

else{

ctrlPadre.setDisabled();

}
});


thanks for your help
sorry i thought this was phprunner forum