Fred04
Member
hello,
I cannot figure out how to create for a Repeat Group a JS that perform the simple math
price = unit price x qty
here is what I have so far but it works only for the record [0]
How can i make it work for any record? i suspect i have to play with some arrays but I'm no so familliar,
I cannot figure out how to create for a Repeat Group a JS that perform the simple math
price = unit price x qty
here is what I have so far but it works only for the record [0]
Code:
$('join___12___order___price_0').value =
parseFloat($('join___12___order___unitprice_0').value)
* parseFloat($('join___12___order___qty_0').value);
How can i make it work for any record? i suspect i have to play with some arrays but I'm no so familliar,