diff --git a/app/Views/member_form.php b/app/Views/member_form.php index 375bd5d..c9a0bf8 100644 --- a/app/Views/member_form.php +++ b/app/Views/member_form.php @@ -331,6 +331,14 @@ function get_country_code() //alert(countryCode); $('#country_code_post').val(countryCode); } +$('#country').change(function() { + var country = $("#country").val(); + if(country != 'Canada') + { + $('#state').val(''); + } +}); + diff --git a/app/Views/memberaccess.php b/app/Views/memberaccess.php index 738cda8..2122ee0 100644 --- a/app/Views/memberaccess.php +++ b/app/Views/memberaccess.php @@ -447,6 +447,14 @@ $(document).ready(function(){ }); }); + +$('#country').change(function() { + var country = $("#country").val(); + if(country != 'Canada') + { + $('#state').val(''); + } +});