AJAX-jQuery

by pw_we1

HTML

<button id="req">Get</button>
<p id="response">

</p>

JavaScript

$("#req").click(function(){
  $("#response").html("...");
  $.ajax({ 
    url: "http://api.fixer.io/latest",
    dataType: "html",
    success: function(result) {
      $("#response").html(result);
    },
 });
})