I am doing some calculations on the fly for my client, but the javascript keeps returning a nan when I put my numbers into the fields. On the front end I am using 2 labels (one they can not change, and other being the total cost. then there are 3 textboxes that can be manipulated to equate the correct total.
Any help would be greatly appreciated. BTY, programming in vb.net with javascript.
[CODE]function doCalcVendorFees(){
var el1=document.getElementById(“lblBaseFee”).innerHTML;
var el2=document.getElementById(“txtCopyFee”);
var el3=document.getElementById(“txtCertificationFee”);
var el4=document.getElementById(“txtOtherFee”);
var FeeTotal = parseFloat(el1.value + el2.value + el3.value + el4.value);
document.getElementById(“lblFeeTotal”).innerHTML = FeeTotal;
}
Thank you in advance.
CommDown