From b42704f25d59a4807dad808f7af129a46aeee2c9 Mon Sep 17 00:00:00 2001 From: "venkatesh.r" Date: Fri, 22 Mar 2024 10:39:40 +0530 Subject: [PATCH] FIX_CLIENT_BRANCH_MOBILE_VALIDATAION : RV --- app/Views/client_branch.php | 14 ++++++++++---- app/Views/client_policy.php | 13 +++++++++++++ 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/app/Views/client_branch.php b/app/Views/client_branch.php index 69e76287..c050dbc6 100644 --- a/app/Views/client_branch.php +++ b/app/Views/client_branch.php @@ -88,7 +88,7 @@
- +
@@ -97,7 +97,7 @@
- +
@@ -293,7 +293,6 @@ $(document).ready(function () { }); - $('body').on('click', '.btnBranchEdit', function () { console.log(branch_form_action); @@ -352,6 +351,13 @@ $(document).ready(function () { }); + $("#remove_btn").click(function(){ + $("#name").val(''); + $("#email").val(''); + $("#mobile").val(''); + $("#designation").val(''); + }) + // Initialize the contact count function appendContactHtml(contact = false, reset = false) { @@ -379,7 +385,7 @@ $(document).ready(function () {
- +
diff --git a/app/Views/client_policy.php b/app/Views/client_policy.php index bdbb763b..310e6bda 100644 --- a/app/Views/client_policy.php +++ b/app/Views/client_policy.php @@ -160,6 +160,12 @@ $('#table_list').hide(); $('.btnBack').show(); $('.btnAdd').hide(); + $('#insurer').val(''); + $('#tpa').val(''); + $('#start_date').val(''); + $('#end_date').val(''); + $('#policy').html(''); + $('#is_addon').prop('checked', false); $('#policy_form_action').val(''); }) @@ -299,6 +305,13 @@ `; }); $('#policy_table').append(policyTable); + + $('#insurer').val(''); + $('#tpa').val(''); + $('#start_date').val(''); + $('#end_date').val(''); + $('#policy').html(''); + $('#is_addon').prop('checked', false); }, error: function(xhr, status, error) { console.error(xhr.responseText);