Simple Currency Converter with jQuery and YQL - Cambio

Simple Currency Converter with jQuery and YQL - Cambio
File Size: 4.74KB
Views Total: 2848
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

Cambio is a simple jQuery plugin for automatically converting all major world currencies with Yahoo API's latest currency exchange rates.

Basic Usage:

1. Load the jQuery javascript library and jQuery cambio plugin at the bottom of the page.

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="jquery.cambio.js"></script>

2. Create a converter following the html structure:

<p>€100 is $<span data-cambio="100 EUR to USD"></span>, £<span data-cambio="100 EUR to GBP"></span>, ¥<span data-cambio="100 EUR to JPY"></span></p>

3. Call the plugin on the <span> element. The plugin will do the rest.

<script type="text/javascript">
$(document).ready(function(){
$('span').cambio();
});
</script>

This awesome jQuery plugin is developed by johnrees. For more Advanced Usages, please check the demo page or visit the official website.