What am I doing wrong here? Just a simple ajax to hide some fields and its not working!
if ({employ_current} == 'Yes') // Display field
{
echo 'show';
sc_field_display({employ_type}, 'off');
sc_field_display({employ_employer}, 'on');
sc_field_display({employ_position}, 'on');
sc_field_display({employ_practice}, 'on');
sc_field_display({employ_worknature}, 'on');
}
else // Hide field
{
echo 'hide';
sc_field_display({employ_type}, 'off');
sc_field_display({employ_employer}, 'off');
sc_field_display({employ_position}, 'off');
sc_field_display({employ_practice}, 'off');
sc_field_display({employ_worknature}, 'off');
}
[ATTACH=JSON]{“data-align”:“none”,“data-size”:“large”,“data-attachmentid”:86037}[/ATTACH]
[ATTACH=JSON]{“data-align”:“none”,“data-size”:“large”,“data-attachmentid”:86039}[/ATTACH]
[ATTACH=JSON]{“data-align”:“none”,“data-size”:“large”,“data-attachmentid”:86040}[/ATTACH]