![]() |
How to add up dynamic totals?
I haveI have ten functions (I know this is a drawn out way of coding) and the last function doesn't work.
Its supposed to total up the result of the first 9 functions, but it doesn't change my input at all. can I resolve this? Code:
|
Is this a homework assignment? See: http://www.webdeveloper.com/forum/sh...=Dynamic+total
You also have several syntax errors . . . Check your error console. What was wrong with the previous response in the link above? |
Re the previous link...
I had to change the first function, as it was playing up. Which then caused the second function you showed me not to work. Where am I going wrong on the syntax? As you can tell I'm really new to JavaScript, is white space not ignored in JavaScript? Also some inputs are generated with php post, for some reason on change worked but on blur didn't when using php in the form Ps. Thanks for your help! |
It may be your PHP, because the following runs the JS without errors on FF. I know very little of PHP.
Tested on FF but not other browsers. Remember to change the <form...> arguments for your needs. Code:
<html> |
| All times are GMT +1. The time now is 07:28 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.