Hi – first post here.
I have a scenario with 3 x 12 textfields and looking for a javascript that could do the trick.
What I’m looking for is a smart way of extracting the values of the first three textfields and then multiply them. This will be done for all 12 rows.
I then would like to add the result from the 12 rows together to create a final value that will be presented in a seperate textfield.
[B]row1=value1*value2
row2 =value1*value2
then row1+row2+…row12
To show you what I mean I’ve created a small page with 3 x 2 fields at this link: [URL=”http://www.drink2drive.com/dev/html/test1.php”]http://www.drink2drive.com/dev/html/test1.php
The idea is then to have 12 rows and not two.
Also – it should call for the function onChange.
I guess combind all the values in three seperate [B]arrays
Maybe a for(i<12)-code could help.
So – I really hope that some of you have a smart way of doing this. It would help a lot and make me very happy!
Kind regards,
Pixy