|
|
|
|
@ -246,7 +246,7 @@
|
|
|
|
|
<!-- <p><input class="InquiryCalendar" data-min-date="7" id="starting_date" name="date_start"
|
|
|
|
|
placeholder="Starting date" required type="date"></p> -->
|
|
|
|
|
|
|
|
|
|
<select class="country_code" name="country_code">
|
|
|
|
|
<select class="country_code" name="country_code" id="country_code">
|
|
|
|
|
<option style="font-weight: 600;" value="United States +1">United States +1
|
|
|
|
|
</option>
|
|
|
|
|
<option style="font-weight: 600;" value="United Kingdom +44">United Kingdom
|
|
|
|
|
@ -827,4 +827,20 @@
|
|
|
|
|
$("#email").mailAutoComplete({
|
|
|
|
|
email: ['gmail.com', 'outlook.com', 'yahoo.com', 'icloud.com', 'hotmail.com', 'live.com', 'aol.com']
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
<script>
|
|
|
|
|
$(function () {
|
|
|
|
|
$.getJSON("https://www.globalhighlights.com/index.php/location/get_country", function (data) {
|
|
|
|
|
var yourCountry = data.country_name;
|
|
|
|
|
$('#country_code option').each((i, optionEle) => {
|
|
|
|
|
var countryName = optionEle.value.split('+')[0].trim();
|
|
|
|
|
if (yourCountry === countryName) {
|
|
|
|
|
optionEle.selected = true;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
.fail(function (xhr, status, error) {
|
|
|
|
|
console.error(error);
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
</script>
|