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

How to code html page to calculate: (text input #) X (text input2 #) X ( #)= total

P: 1
How do you code html page to calculate on the fly (input#) X (input#) X (constant#) = Total $ ?
Sep 4 '12 #1
Share this Question
Share on Google+
2 Replies

Expert Mod 10K+
P: 12,430
You use javascript and events. That's pretty much all I can say at this point with the level of detail you have given.

If you post what code you've tried, we can help further, but as of now, you haven't posted much to work with.
Sep 4 '12 #2

P: 93
you can use javascript to calculate this.

like this

Expand|Select|Wrap|Line Numbers
  1. var ans = parseInt(document.getElementById("txt1").value)*parseInt(document.getElementById("txt1").value)* 5;
  3. alert(ans);
Sep 5 '12 #3

Post your reply

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