ontarget
Active Member
Hi I am triggering an onLoad and onChange event on a YesNo element - hideReasonNo(this); via inline js from the /form_X.js file
Basically nothing happens! I set the value for '1' in the js as below
Basically nothing happens! I set the value for '1' in the js as below
JavaScript:
function hideReasonNo(el)
{
var elL = el.form.formElements.get('aaa_mentors___available_to_mentor');
var elM = el.form.formElements.get('aaa_mentors___reason_if_no');
if (elL.getValue() === '1') {
elM.hide();
return;
}
else {
elM.show();
}
}