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/2.1.1/jquery.min.js " type="text/javascript"></script>
<script src="https://net-raft.com/plugins/jquery/get_flag/GetFlag.js" type="text/javascript"></script>
</head>
<body>
<script>
$(document).ready(function () {
$.getJSON('https://api.db-ip.com/v2/free/self')
.done(function (location) {
var country = location.countryName;
var height = "70";
var width = "100";
$(".myflag1").GetFlag(country, height, width);
});
country = "Brazil";
height = "30";
width = "50";
$(".myflag2").GetFlag(country, height, width);
});
</script>
<div class="myflag1"></div>
<div class="myflag2"></div>
</body>
</html>
The most helpful JQUERY solutions
plugin get client ip address using jqueryJQUERY Click to see more ... 10.9K 1.8K