Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6927039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:59:47+00:00 2026-05-27T10:59:47+00:00

I have this JSON file with Currency Rates: http://openexchangerates.org/latest.json Can someone help me with

  • 0

I have this JSON file with Currency Rates:

http://openexchangerates.org/latest.json

Can someone help me with a jQuery script so the results will look like:

<div class="currency">USD</div><div class="value">1.000</div>

<script type="text/javascript">

   $(document).ready(function() {
    var url =  "http://openexchangerates.org/latest.json";
    $.getJSON(url + "?callback=?", null,function(data) {

       // ADD CODE HERE

    });
    });


</script>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T10:59:48+00:00Added an answer on May 27, 2026 at 10:59 am

    Assuming you want to loop through all of those rates…. you’ll want to do something around the lines of this.

    <script type="text/javascript"> 
    
       $(document).ready(function() { 
        var url =  "http://openexchangerates.org/latest.json"; 
        $.getJSON(url + "?callback=?", null,function(data) { 
           var myElementToAppendTo = $("#myElement");  // Note: add whatever element you are putting this into here
           $.each(data.rates, function(key, value) {
             if(key == "EUR" || key == "USD" || key == "GBP") {
               myElementToAppendTo.append("<div class='currency'>" + key + "</div><div class='value'>" + value + "</div>");
             }
           }
    
        }); 
       }); 
    
    
    </script> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I am to have this external json file: { http://example.org/about : { http://purl.org/dc/elements/1.1/title
I have this JSON file: http://danish-regional-data.googlecode.com/svn/trunk/danish_regional_data.json How do I remove all the attribues within_5_km
I have a JSON file which contains a pound symbol in it. This json
I have this swf (flash) file that provides the json that needs to be
I have a json file exported from phpmyadmin, it looks like this(utf-8 file): [{user_email:
I have some data and need to create a json file with this structure
I have this JSON http://www.progmic.com/ielts/retrive.php that I need to parse. When I do it
I have this JSON in a file: { "maps": [ { "id": "blabla", "iscategorical":
I have this JSON file { 1 : { name: John Doe, birthYear: 1990,
Need your help, trying to change this script: https://github.com/MrHus/jquery-monthly-ical To load external JSON data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.