title: Getting JSON exchange rate from fixer.io to HTML
body: <p>I'm trying to get the current USD to EUR rate from fixer.io into a single line in a HTML file and replace the "." in the USD value with a ",".</p>
  
  <p>Can somebody help me?</p>
  
  <p>LINK: <a href="https://api.fixer.io/latest?symbols=USD" rel="nofollow noreferrer">https://api.fixer.io/latest?symbols=USD</a></p>
  
  <pre><code>{
    "base": "EUR",
    "date": "2017-12-04",
    "rates": {
      "USD": 1.1865
    }
  }
  </code></pre>
  
  <p>What i need in a HTML file:</p>
  
  <pre><code>1,1865
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>This is what i tried so far (literally never done this before):</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;span id="rate_usd"&gt;&lt;/span&gt;
  </code></pre>
  
  <p>JS:</p>
  
  <pre><code>$(document).ready(function(){
    var url= "https://api.fixer.io/latest?symbols=USD"
    $.getJSON(url,function(data){
      document.getElementById("rate_usd").innerHTML = data.rates.USD;
  
    });
  });
  </code></pre>