Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script>
$(document).ready(function () {
$.get("https://ipinfo.io/", function(response) {
document.write(response.ip, " " + response.country);
}, "jsonp")
});
</script>
</head>
<body>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js "></script>
<script>
$(document).ready(function () {
$.get("https://ipinfo.io/", function(response) {
document.write(response.ip, " " + response.country);
}, "jsonp")
});
</script>
</head>
<body>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js "></script>
</head>
<body>
<script>
$(document).ready(function () {
$.getJSON('https://geoip-db.com/json/geoip.php?jsonp=?')
.done (function(location)
{
var country = location.country_name;
document.write(country);
});
});
</script>
</body>
</html>
The most helpful JQUERY solutions
plugin get client ip address using jqueryJQUERY Click to see more ... 10.9K 1.8K