Hello dear people I'm new to phpmaker.
Problem how to show the totals of the onchange?
Beforehand Thanks.
-------------Example--------------
1) add onchange event by using Row_Rendered server event that passes the element and row index to the MyFunction function
$this->quantity->EditAttrs["onchange"] = "MyFunction.call(this, " . $this->RowIndex . ");";
2)add a JavaScript MyFunction in Start-up Script Client event
tion MyFunctionAdd(rowindex) {
var form = this.form;
var quantity = form.elements["x" + rowindex +"quantity"];
var price = form.elements["x" + rowindex +"price"];
sum.value = quantity.value * arzish.value //All this work
_Namequantityprice Sum
1 Lemon 1 1$ 1$
2 banana 2 1$ 2$
3 apple 2 1.5$ 3$
totals: 6$___(Problem)