Hi
Got a problem
I am writing my own sign up page and have one problem that is driving me nuts, may be wood for the trees I dont know.
I have user inputs on a form that return via ajax a subtotal in the relevent row. so row1 row2 etc
I need to total all these and and take off a %
so when the user selects options OnChange fires the function to get total. I have added a second function to fire after the value is returned to total the subtotals to a grans total.
The problem is that it totals the subtotal that was previously in the box before the user selected a different option.
So when the user first selects an option and 1.99 shows in row1 subtotal the grand total is 0
when the user reselects and it changes to 2.99 the grand total shows 1.99
I am doin something wrong but am going in circles.
Anyone lead me out of this blind spot I am in.
Gotta be simple, what have I missed.
Find the code running at
html at
untidy but its my play script to get this damn thing working..
Thank you all
Got a problem
I am writing my own sign up page and have one problem that is driving me nuts, may be wood for the trees I dont know.
I have user inputs on a form that return via ajax a subtotal in the relevent row. so row1 row2 etc
I need to total all these and and take off a %
so when the user selects options OnChange fires the function to get total. I have added a second function to fire after the value is returned to total the subtotals to a grans total.
The problem is that it totals the subtotal that was previously in the box before the user selected a different option.
So when the user first selects an option and 1.99 shows in row1 subtotal the grand total is 0
when the user reselects and it changes to 2.99 the grand total shows 1.99
I am doin something wrong but am going in circles.
Anyone lead me out of this blind spot I am in.
Gotta be simple, what have I missed.
Find the code running at
html at
untidy but its my play script to get this damn thing working..
Thank you all