I am using intlTelInput in plain HTML/CSS using below code and it's working fine you can see the demo (intl-tel-input sample).
HTML code
<label for="phone" class="control-label">Mobile Phone Number</label><br/>
<input type="tel" class="form-control" id="phone" placeholder="">
Javascript code
<script>
var input = document.querySelector("#phone");
intlTelInput(input, {
initialCountry: "auto",
geoIpLookup: function(success, failure) {
$.get("https://ipinfo.io", function() {}, "jsonp").always(function(resp) {
var countryCode = (resp && resp.country) ? resp.country : "";
success(countryCode);
});
},
utilsScript: "css/intl-tel-input-master/build/js/utils.js"
});
Now, I am using the same code in laravel and it shows me nothing. Can you please tell me how to solve the issue?
GET https://ipinfo.io/?callback=jQuery1111094…1559198167627&=1559198167628 net::ERR_ABORTED 429