Hi shahadatuk,
Sorry for the late reply. I have missed your first post. I just received the notification email of the second one.
Here is what happens:
The javascript of the plugin executes this code when the page is loaded:
jQuery(".wpcf7-intl-tel").intlTelInput({
initialCountry: "auto",
utilsScript: wpcf7_utils_url,
geoIpLookup: function(callback) {
jQuery.get('https://ipinfo.io', function() {}, "jsonp").always(function(resp) {
var countryCode = (resp && resp.country) ? resp.country : "";
callback(countryCode);
});
}
});
Aparently, the input in your popup is does not exist yet at that time.
There are two ways you can solve it.
- When you execute the JS that opens the popup, make sure you execute the code above too
- Make sure your input is there in a hidden div with the original html so that the first time the above code is executed, it finds id
I hope this fixes your issue.
Please, let me know how it ended up.