From 157d17db65acbf9a6556a0816c1667d2263f62ca Mon Sep 17 00:00:00 2001 From: suresh Date: Sat, 22 Jul 2023 15:21:14 +0530 Subject: [PATCH] suresh --- app/Views/member_form.php | 8 ++++++++ app/Views/memberaccess.php | 2 +- app/Views/user_form.php | 8 ++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) 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 575440a..2122ee0 100644 --- a/app/Views/memberaccess.php +++ b/app/Views/memberaccess.php @@ -454,7 +454,7 @@ $('#country').change(function() { { $('#state').val(''); } - }); +});