|
|
@ -42,7 +42,7 @@ |
|
|
|
<div class="col-md-6"> |
|
|
|
<div class="mb-3" id=""> |
|
|
|
<label class="form-label">Receiver's Country</label> |
|
|
|
<select class="form-select form-control" asp-for="Country" asp-items="@CustomerOnlineV2.Helper.HelperClass.GetDropdownData("pCountry", true)" class="form-select" required onkeydown="PaymentMethodChangeEvent"> |
|
|
|
<select class="form-select form-control" asp-for="Country" asp-items="@CustomerOnlineV2.Helper.HelperClass.GetDropdownData("allCountrylistWithCode", true)" class="form-select" required onkeydown="PaymentMethodChangeEvent"> |
|
|
|
@* <option value="BANGLADESH">BANGLADESH</option> |
|
|
|
<option value="INDIA">INDIA</option> |
|
|
|
<option value="SRI LANKA">SRI LANKA</option> |
|
|
@ -327,7 +327,7 @@ |
|
|
|
utilsScript: "https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/12.1.5/js/utils.js", |
|
|
|
|
|
|
|
autoPlaceholder: true, |
|
|
|
initialCountry: "NP", |
|
|
|
nationalMode: true, |
|
|
|
geoIpLookup: "auto", |
|
|
|
|
|
|
|
}); |
|
|
@ -335,11 +335,21 @@ |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
function PopulateCountryFlagForMobileNumber() { |
|
|
|
var getCountryId = $('#Country option:selected').val(); |
|
|
|
if (getCountryId !== null && getCountryId !== "" && getCountryId !== "0") { |
|
|
|
var getCountry = $('#Country option:selected').text(); |
|
|
|
var code = getCountry.split('('); |
|
|
|
code = code[1].split(')')[0]; |
|
|
|
$('#ReceiverForm').find('[name="Mobile"]').intlTelInput('setCountry', code); |
|
|
|
} |
|
|
|
} |
|
|
|
$('#Country').change(function () { |
|
|
|
|
|
|
|
if ($(this).val() != '') { |
|
|
|
PopulateDDL('paymentMode', 'pMode', $(this).val(), true, ''); |
|
|
|
|
|
|
|
PopulateCountryFlagForMobileNumber(); |
|
|
|
} |
|
|
|
else { |
|
|
|
$('#paymentMode').empty(); |
|
|
|