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

how to calculate two text box values and display it in another text box dynamically?

P: 5
how to calculate two text box values and display it in another text box dynamically??
Aug 9 '08 #1
Share this Question
Share on Google+
4 Replies


hsriat
Expert 100+
P: 1,654
Expand|Select|Wrap|Line Numbers
  1. document.getElementById('resultDiv').innerHTML = parseInt(document.getElementById('textarea1').value) + parseInt(document.getElementById('textarea2').value);
Aug 9 '08 #2

P: 5
Expand|Select|Wrap|Line Numbers
  1. document.getElementById('resultDiv').innerHTML = parseInt(document.getElementById('textarea1').value) + parseInt(document.getElementById('textarea2').value);

Thank you ..but innerHtml not working fine with my IE so i just use .value instead of innerHtml its now working fine

Thanks.....
Aug 11 '08 #3

hsriat
Expert 100+
P: 1,654
Thank you ..but innerHtml not working fine with my IE so i just use .value instead of innerHtml its now working fine

Thanks.....
It should be working with a div, span or etc, not with input.
Anyhow, I'm glad you got it working. :)
Aug 11 '08 #4

P: 1
thank you.. cheer! it works, finally im getting done..
Mar 18 '12 #5

Post your reply

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