By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,370 Members | 1,534 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,370 IT Pros & Developers. It's quick & easy.

Currency convert

P: 2
i need the programe which convert indian rupees to amrican dolar,
when i am entering indian value in rupess text field.then answer will display in below dolar text field .plse help me ,it is very urgent for me.raju
Jun 15 '07 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
This was posted in the Articles section. Moved to the correct place.

Also changed the title of the thread.

You'll probably have a currency conversion rate, so try something like:
Expand|Select|Wrap|Line Numbers
  1. function currencyConvert(obj) {
  2.  var rate = ...;
  3.  var rupees = obj.value;
  4.  var dollars = rupees * rate;
  5.  document.getElementById('dollartextfield').value = dollars;
  6. }
Adapt and call this function on text field onchange.
If you get stuck, post your code.
Jun 15 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.