Need help on the client-side script.
the value for this field is character. if I select "1" it supposed to hide the "Nationality_of_spouse" field. the code below did not do the trick. not sure if I missed anything.
{ // keys = event types, values = handler functions
"change": function(e) {
// Your code
if (this.value == '1') {
$(this).fields("Nationality_of_spouse").visible(false);
$(this).fields("Nationality_of_spouse").value("N/A");
} else {
$(this).fields("Nationality_of_spouse").visible(true);
}
}
}
appreciate if can help.