JSFiddle - React, Tailwind, and code Playground

/* ipinfo.io (4th of 4 examples maybe) jQuery get, overall which has weird results in diff browsers!!!! */

by dledle2

HTML

<span>192.110.160.11</span><br>
<span>177.67.82.22</span><br>
<span>36.75.102.33</span><br>

CSS

/* ipinfo.io (4th of 4 examples maybe) jQuery get, overall which has weird results in diff browsers!!!!  */

JavaScript

document.body.innerHTML = document.body.innerHTML.replace(new RegExp("<span>(.*?)</span>", "g"),"<span id='ip'>$1</span> - <span id='country'>wait..</span>");

var ip = document.getElementById("ip").innerHTML;
    
$.get("http://ipinfo.io/"+ip, function (response) {
$("#country").html(response.country);
}, "jsonp");