Hi All, I need some assistance with this I have several texboxes that store a integer, and after each value is placed, i'd like to place the total into a separate textbox. Thanks in advance.
This is pretty crude but it works most of the time <html> <head> <script type='text/javascript'> function sumValues() { var v1 = parseFloat(document.getElementById('box1').value); var v2 = parseFloat(document.getElementById('box2').value); document.getElementById('box3').value = v1 + v2; } </script> </head> <body> <form onchange=sumValues()> <input id='box1' type='text' /> <input id='box2' type='text' /> <input id='box3' type='text' /> </form> </body> </html> Code (markup):