Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: simple calulation of form total


Message #1 by "Becky Holmes" <rebeholm@h...> on Wed, 3 Apr 2002 17:42:24
Try the onBlur or onChange events for each box.

At 17:42 03/04/02 +0000, you wrote:
>I have a form with 20 rows of text boxes each with a different field
>name.  The user can enter any number value into the text boxes.  I want a
>text box at the bottom which automatically totals up all the values as
>they are typed in within the 20 textboxes.  Is there simple javascript
>that can do this?  Thanks.
>
>---
>
>Improve your web design skills with these new books from Glasshaus.
>
>Usable Web Menus
>http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
>r-20
>Constructing Accessible Web Sites
>http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
>r-20
>Practical JavaScript for the Usable Web
>http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
>r-20



  Return to Index