jQuery(document).ready(function(){
jQuery(‘input[name=”additional_has_residency”]’).click(function(){
var inputValue = jQuery(this).attr(“value”);
if(inputValue === ‘nao’) {
jQuery(“#additional_residency_institution”).val(‘Nenhuma’);
jQuery(“#additional_residency_institution_field”).hide();
} else {
jQuery(“#additional_residency_institution”).val(”);
jQuery(“#additional_residency_institution_field”).show();
}
});
jQuery(‘input[name=”additional_has_specialty”]’).click(function(){
var inputValue = jQuery(this).attr(“value”);
if(inputValue === ‘nao’) {
jQuery(“#additional_specialty”).val(‘Nenhuma’);
jQuery(“#additional_specialty_field”).hide();
} else {
jQuery(“#additional_specialty”).val(”);
jQuery(“#additional_specialty_field”).show();
}
});
});