on 06-15-2007 2:41 PM
I am getting an error on this function. The error says Object Expected. Any thoughts?
function UpdateWeight()
{
A = document.frmMain.tTareWeight.value;
B = document.frmMain.tGrossWeight.value;
alert(Tare);
if (Number(A) && Number(B)) {
A = Number(A)
B = Number(B)
C = A + B
document.frmMain.tNetWeight.value = C
}
else {
alert("Please enter a number in both boxes");
}
<input type="text" name="tTareWeight"onChange="UpdateWeight()"/>
You are missing an ending "}" for the function call.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.