dimanche 29 septembre 2019

Showing error angular.js:12477 TypeError: $(...).intlTelInput is not a function

I have a tab service prvider which shows details of customer while clicking the tab shows empty fields to edit with an error angular.js:12477 TypeError: $(...).intlTelInput is not a function after refresing the page the error will disappear what will be the issue

I have put my intlTelInput function inside a timeout function but didint work.

this is my code if( $("input[name='code']").length >= 1){ $("input[name='code']").intlTelInput({ separateDialCode:true, initialCountry: "auto", geoIpLookup: function(callback) { $.getJSON("https://freegeoip.net/json/", function (data) { callback(data.country_code);` }); } });} This is my error angular.js:12477 TypeError: $(...).intlTelInput is not a function at Object. (http://localhost/taskm-rio/public/admin/app/ng-controllers/providerController.js:104:49)

enter image description here



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire