I am adding international country dial code in front of a input box of phone no using below code.
$( document ).ready(function() {
var input = document.querySelector("#phone1");
window.intlTelInput(input, {
utilsScript: "https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/js/utils.js",
initialCountry: "gb",
separateDialCode: true,
});
});
This code is working perfectly when I am browsing normally. I have a submit button in this page. After submitting form this page is redirect to next page. I have a back button in next page. Below code is working when I page back button in next page.
$(document).on("click", ".locationBack", function () {
var property_id = $('.property_id').val()
getPropertyInformation(property_id)
stepActiveClass(1)
});
When I press back button Dial Code
code is not working.