You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can get the user's country code through the following code:
$(document).ready(function () { var url = "https://ipinfo.io/country"; $.get(url, function (countryCode) { alert(countryCode); //For example show "IR" }); });
Then pass the value to the input before loading the page:
is it possible to pre-select user's country based on an external ip provider like https://ipinfo.io/pricing ?
The text was updated successfully, but these errors were encountered: