I'm trying to understand getElementByID a bit better.
When I try the following...
if (parseFloat(document.getElementByID('QuantityMade' ).value) > 0) {
alert('it seems to exist');
}
(the text field QuantityMade holds a value of 17)
I get an error saying the Object doesn't support this property or method.
so I pare it down to this...
if (document.getElementByID('QuantityMade').value > 0) {
alert('it seems to exist');
}
and get the same error
So I try this...
alert(document.getElementByID('QuantityMade').valu e);
and get the same error
is this not a valid way to get the value of a text field when only its
ID is known?? Is there a better strategy for getting and setting this
value from anywhere in a page???
Thanks.