Hi, I need to perform a simple multiplication calculation within a form that has repeated rows within it.
I need to be able to use this script (or something similar) in a repeated table within PHP.
var multiplier = 2; //your number here
var result = 0;
result = num * multiplier;
result = result.toFixed(0);
document.myform.result.value = result;
<input type="text" name="txt1" id="txt1" onkeyup="calc(this.value);"/>
<input type="text" name="result" id="result" readonly="readonly"/>