You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am working on a form obviously :), I am working on a function that if a option from a dropdown list is selected some of the fields get hidden and if the other option are selected the fields come back again... for obvious reasons toggle and remove is not working, is there a way to show the hidden fields with validations??
Hi,
I am working on a form obviously :), I am working on a function that if a option from a dropdown list is selected some of the fields get hidden and if the other option are selected the fields come back again... for obvious reasons toggle and remove is not working, is there a way to show the hidden fields with validations??
please help :)
Code:
$('#emp-status').change(function(){
if($('#emp-status').val() == 'not-employed'){
$myform.toggleFields([ 'emp-bussiness-name', 'emp-bussiness-phone', 'emp-address1', 'emp-city', 'emp-province', 'emp-country', 'emp-postal-code' ])
}
else{
$myform.toggleFields([ 'emp-bussiness-name', 'emp-bussiness-phone', 'emp-address1', 'emp-city', 'emp-province', 'emp-country', 'emp-postal-code' ])
}
});
The text was updated successfully, but these errors were encountered: