I have the following code (a one line function)
I'm trying to calculate a value for text field matPerPiece# where #
is a row number I provide. The value is calculated from text fields
matPOTotal# and QuantityMade.
The elements exist in a form named costsheet
function mattotalrow(row Number) {
document.getEle mentsById('matP erPiece' + rowNumber).valu e =
(document.getEl ementsById('mat POTotal' + rowNumber) /
document.getEle mentsById('Quan tityMade'));
}
I'm not sure how to access the values in the object that is returned
by the following syntax:
var newObj = document.getEle mentsById('fiel dname');
Thanks for your help I appreciate any suggestions you can provide.
Greg.
I'm trying to calculate a value for text field matPerPiece# where #
is a row number I provide. The value is calculated from text fields
matPOTotal# and QuantityMade.
The elements exist in a form named costsheet
function mattotalrow(row Number) {
document.getEle mentsById('matP erPiece' + rowNumber).valu e =
(document.getEl ementsById('mat POTotal' + rowNumber) /
document.getEle mentsById('Quan tityMade'));
}
I'm not sure how to access the values in the object that is returned
by the following syntax:
var newObj = document.getEle mentsById('fiel dname');
Thanks for your help I appreciate any suggestions you can provide.
Greg.
Comment