Solved

javascript form input onchange calculation

Posted on 2007-03-28
2
369 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
key press alert 2 32
How to resize a div in html 3 40
multiple selects 23 49
Javascript object functions help 1 6
In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
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…

821 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