Please help me with a problem - get function not working for http://wtfismyip.com/text or http://www.passwordrandom.com/query?command=ip
Code:
<span id="global_ip" class="global_ip">global ip - get test</span>
<script type="text/javascript">
$('#global_ip').click(function () {  
    alert('click!');      
    $.get({
        type: "GET",
        url: "http://www.passwordrandom.com/query?command=ip",
        dataType: "text"
    }).done(function (res) {
        alert(res);
    }).fail(function (jqXHR, textStatus, errorThrown) {
        alert("Call failed: " + textStatus + ", " + errorThrown);
    });
});
 
     
     
    