G
Greg
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(rowNumber) {
document.getElementsById('matPerPiece' + rowNumber).value =
(document.getElementsById('matPOTotal' + rowNumber) /
document.getElementsById('QuantityMade'));
}
I'm not sure how to access the values in the object that is returned
by the following syntax:
var newObj = document.getElementsById('fieldname');
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(rowNumber) {
document.getElementsById('matPerPiece' + rowNumber).value =
(document.getElementsById('matPOTotal' + rowNumber) /
document.getElementsById('QuantityMade'));
}
I'm not sure how to access the values in the object that is returned
by the following syntax:
var newObj = document.getElementsById('fieldname');
Thanks for your help I appreciate any suggestions you can provide.
Greg.