diff --git a/CustomerOnlineV2/CustomerOnlineV2/Views/ReceiverInformation/Receiver.cshtml b/CustomerOnlineV2/CustomerOnlineV2/Views/ReceiverInformation/Receiver.cshtml
index a723582..92601cd 100644
--- a/CustomerOnlineV2/CustomerOnlineV2/Views/ReceiverInformation/Receiver.cshtml
+++ b/CustomerOnlineV2/CustomerOnlineV2/Views/ReceiverInformation/Receiver.cshtml
@@ -207,81 +207,7 @@
-
@@ -352,12 +278,10 @@
var editFlag = '@editFlag';
var receiverId = '@receiverId';
editReceiver(editFlag, receiverId);
-
-
$('#Country').change(function () {
if ($(this).val() != '') {
- PopulateDDL('paymentMode', 'pMode', $(this).val(), true, '');
+ PopulateDDL('paymentMode', 'pMode', $(this.val(), true, '');
}
else {
@@ -365,13 +289,25 @@
}
});
+ // $('#paymentMode').change(function () {
+ // if ($(this).val() != '') {
- $('#paymentMode').change(function () {
+ // PopulateAgentDDL('bankName', 'rec-select-agent', $(this).val(), true, '');
+ // }
+ // else {
+ // //$('#paymentMode').empty();
+ // // $('#Relationship').empty();
+ // //$('#idType').empty();
+ // $('#bankName').empty();
+ // }
+ // });
-
- if ($(this).val() != '') {
+
+ $('#paymentMode').change(function () {
+
+ if ($(this).val() 1= '') {
PopulateAgentDDL('bankName', 'rec-select-agent', $(this).val(), true, '');
}
@@ -384,16 +320,49 @@
});
- $('#ReceiverForm')
- .find('[name="Mobile"]')
- .intlTelInput({
- utilsScript: "https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/12.1.5/js/utils.js",
- autoPlaceholder: true,
- initialCountry: "us",
- geoIpLookup: "auto",
+ function PopulateAgentDDL(id, flag, Country, pCountryid, value, countryId, showSelectOption, selectedVal) {
+ ;
+ let Data = {
+ Flag: flag,
+ Country: Country,
+ pCountry: pCountryid,
+ Value: value,
+ CountryId: countryId
+ };
+
+ $.ajax(
+ {
+ type: 'POST',
+ url: '/ReceiverInformation/GetDDAgentLList',
+ data: Data,
+ headers: {
+ "RequestVerificationToken":
+ $('input[name="__RequestVerificationToken"]').val()
+ },
+ async: false,
+ success: function (response) {
+ PopulateDDLMain(response, id, showSelectOption, selectedVal);
+ },
+ error: function () {
+ return null;
+ }
});
+ };
+
+
+
+ // $('#ReceiverForm')
+ // .find('[name="Mobile"]')
+ // .intlTelInput({
+ // utilsScript: "https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/12.1.5/js/utils.js",
+
+ // autoPlaceholder: true,
+ // initialCountry: "us",
+ // geoIpLookup: "auto",
+
+ // });
// $('#paymentMode').change(function () {