2012-05-01 20 views
0

我有三個文本字段,分別是Quantity,Quantity_per_Unit和Quantity_In_Pieces。如何使用Quantity和Quantity_Per_Unit中的值的乘積來填充Quantity_In_Pieces,而無需刷新表單?我在實現Javascript的textInputEvent方面沒有運氣。使用Dreamweaver實時計算textfield的值

+0

您可以嘗試使用文本字段的按鍵事件,如按鍵向上或向下 – satin

回答

0

或者您可以嘗試onchange()並將您的值發佈到函數,該函數可以計算並向formfileds寫入正確的值。