![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello all, For a local invoice program I am writing, I want to calculate the subtotal per line. Whenever a value is changed on that line the function calculate_subtotal is called. On this line I have three variables: product_aantal_ *line number* product_prijs_ *line number* product_totaal_ *line number* *line number* can be any number between 0 and 9. It depends on the line being changed. The below code works fine in Opera and in IE but not in Firefox. I managed to get it working in FF by using eval() but then it no longer works in Opera or IE. I have tracked it down to the problem being getElementById('product_aantal_'+regel). It doesn't like the +line to create the variable name. Is there a uniform solution to this or is FF just not Javascript enough compliant? |
#3
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |