Lightweight jQuery Currency & Bitcoin Converter - bngMoney.js
File Size: | 3.22 KB |
---|---|
Views Total: | 2398 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |

bngMoney.js is a jQuery based currency converter which supports most currencies of the world and even Bitcoin. Data sourced from various providers with public-facing APIs; copyright may apply; resale is prohibited; no warranties given of any kind. Bitcoin data provided by http://coindesk.com. All usage is subject to your acceptance of the License Agreement available at: https://openexchangerates.org/license/.
Basic usage:
1. Load jQuery library and the jQuery bngMoney.js script at the end of the document.
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script> <script src="bngMoney.js"></script>
2. Build the markup structure for the currency converter form.
<div class="demo"> <!-- Currency Converter Form --> <form action="" role="form"> <label for="baseList">From:</label> <select name="baseList" id="baseList"></select> <input type="number" name="baseInput" value="" id="baseInput"> <label for="targetList">To:</label> <select name="targetList" id="targetList"></select> <input type="text" name="targetOutput" value="" id="targetOutput" readonly> </form> </div>
3. Initialize the plugin and insert your own APP ID from https://openexchangerates.org/api/.
$('.demo').bngMoney({appId: 'xxx'});
Change log:
2015-12-15
- Change self to _this
2015-12-09
- Modify plugin when input is clicked
This awesome jQuery plugin is developed by huy-tran. For more Advanced Usages, please check the demo page or visit the official website.