Solved

javascript form input onchange calculation

Posted on 2007-03-28
2
359 Views
Last Modified: 2012-08-13
I have a form text imput which requires a numeric value.   This value I want to be multiplied with another fixed value and then displayed using div tag.

Everything works fine except that I need to click out of the box for javascript to actually perform the calculation. I would like it to perform the calculation on each character input withut the need to exit the form field.

0
Comment
Question by:vertige
  • 2
2 Comments
 
LVL 11

Expert Comment

by:flipz
ID: 18810668
Try using the onChange event for the textbox instead of the onBlur.
0
 
LVL 11

Accepted Solution

by:
flipz earned 125 total points
ID: 18810703
Sorry - try onKeyUp event - not onChange.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
JavaScript waiting 14 71
angular2 2 way binding on load 7 41
Objects on Same Line 2 18
Wrapper for APPs 9 40
When you need to keep track of a simple list of numbers or strings, the Array object is your most direct tool.  As we saw in my earlier EE Article (http://www.experts-exchange.com/A_3488.html), typical array handling might look like this: (CODE) B…
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now